From: Dr. Stephen Henson Date: Fri, 14 Jan 2011 15:13:59 +0000 (+0000) Subject: add va_list version of ERR_add_error_data X-Git-Tag: OpenSSL_1_0_1-beta1~389 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c341b9cce50eb90ce02e639bd1e23c3c468aae5f;p=oweals%2Fopenssl.git add va_list version of ERR_add_error_data --- diff --git a/crypto/err/err.c b/crypto/err/err.c index 69713a6e2f..fcdb244008 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -1066,6 +1066,13 @@ void ERR_set_error_data(char *data, int flags) void ERR_add_error_data(int num, ...) { va_list args; + va_start(args, num); + ERR_add_error_vdata(num, args); + va_end(args); + } + +void ERR_add_error_vdata(int num, va_list args) + { int i,n,s; char *str,*p,*a; @@ -1074,7 +1081,6 @@ void ERR_add_error_data(int num, ...) if (str == NULL) return; str[0]='\0'; - va_start(args, num); n=0; for (i=0; i