From 149e98dc5fe9ef172d12f329292e9d356705b646 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Fri, 20 Jan 2017 13:37:52 -0500 Subject: [PATCH] Add missing va_end Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/2267) --- demos/easy_tls/easy-tls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/easy_tls/easy-tls.c b/demos/easy_tls/easy-tls.c index ebcadafa7b..45063a4896 100644 --- a/demos/easy_tls/easy-tls.c +++ b/demos/easy_tls/easy-tls.c @@ -322,6 +322,7 @@ static void tls_errprintf(int flush, void *apparg, const char *fmt, ...) va_start(args, fmt); n = (sizeof errbuf) - errbuf_i; r = vsnprintf(errbuf + errbuf_i, n, fmt, args); + va_end(args); if (r >= n) r = n - 1; if (r >= 0) { -- 2.25.1