From: Dr. David von Oheimb Date: Thu, 8 Aug 2019 20:30:38 +0000 (+0200) Subject: fix ERR_add_error_vdata() for use with multiple args/calls X-Git-Tag: openssl-3.0.0-alpha1~1520 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51fe9b00d2fe33aa383f9c04b9c4ec153af63c45;p=oweals%2Fopenssl.git fix ERR_add_error_vdata() for use with multiple args/calls Reviewed-by: Shane Lontis Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9558) --- diff --git a/crypto/err/err.c b/crypto/err/err.c index 24549e3a49..daa4e6e419 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -790,7 +790,7 @@ void ERR_add_error_vdata(int num, va_list args) } len = strlen(str); - for (len = 0; --num >= 0; ) { + while (--num >= 0) { arg = va_arg(args, char *); if (arg == NULL) arg = "";