Skip to content

Commit

Permalink
fix ERR_add_error_vdata() for use with multiple args/calls
Browse files Browse the repository at this point in the history
Reviewed-by: Shane Lontis <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#9558)
  • Loading branch information
DDvO authored and levitte committed Aug 29, 2019
1 parent 9a7846d commit 51fe9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/err/err.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<NULL>";
Expand Down

0 comments on commit 51fe9b0

Please sign in to comment.