Blob Blame History Raw
From 8d83cf9cb0ff0fea802e522f4980124a8075a63f Mon Sep 17 00:00:00 2001
From: Chris Novakovic <chris@chrisn.me.uk>
Date: Thu, 9 Aug 2018 17:56:26 +0100
Subject: [PATCH] Add missing call to va_end() in TRACE()

In SSLeay.xs, TRACE() makes a call to va_start() without a corresponding
call to va_end() before the function returns. Add the missing call to
va_end().

This closes RT#126028. Thanks to Jitka Plesnikova for the report and
patch.
---
 SSLeay.xs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/SSLeay.xs b/SSLeay.xs
index 04070d3..630f09e 100644
--- a/SSLeay.xs
+++ b/SSLeay.xs
@@ -222,6 +222,7 @@ static void TRACE(int level,char *msg,...) {
 	va_start(args,msg);
 	vsnprintf(buf,4095,msg,args);
 	warn("%s",buf);
+	va_end(args);
     }
 }
 
-- 
2.14.4