From 51fe9b00d2fe33aa383f9c04b9c4ec153af63c45 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Thu, 8 Aug 2019 22:30:38 +0200 Subject: [PATCH] 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) --- crypto/err/err.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ""; -- 2.25.1