Add missing va_end

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2267)
This commit is contained in:
Rich Salz 2017-01-20 13:37:52 -05:00
parent 16f013fa70
commit 149e98dc5f
1 changed files with 1 additions and 0 deletions

View File

@ -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) {