Missing varargs cleanup.

This commit is contained in:
Stanislav Klima
2020-01-29 17:33:59 +01:00
parent 2d36624d84
commit 670ba75ea4

View File

@ -27714,8 +27714,10 @@ int wolfSSL_BIO_printf(WOLFSSL_BIO* bio, const char* format, ...)
va_start(args, format);
switch (bio->type) {
case WOLFSSL_BIO_FILE:
if (bio->ptr == NULL)
if (bio->ptr == NULL) {
va_end(args);
return -1;
}
ret = vfprintf((XFILE)bio->ptr, format, args);
break;