forked from wolfSSL/wolfssl
Missing varargs cleanup.
This commit is contained in:
@ -27714,8 +27714,10 @@ int wolfSSL_BIO_printf(WOLFSSL_BIO* bio, const char* format, ...)
|
|||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
switch (bio->type) {
|
switch (bio->type) {
|
||||||
case WOLFSSL_BIO_FILE:
|
case WOLFSSL_BIO_FILE:
|
||||||
if (bio->ptr == NULL)
|
if (bio->ptr == NULL) {
|
||||||
|
va_end(args);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
ret = vfprintf((XFILE)bio->ptr, format, args);
|
ret = vfprintf((XFILE)bio->ptr, format, args);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user