diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2019-08-08 22:30:38 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-08-29 18:14:47 +0200 |
commit | 51fe9b00d2fe33aa383f9c04b9c4ec153af63c45 (patch) | |
tree | dc5d4cadb05a0da289f29954889c330047c51b23 /crypto/err/err.c | |
parent | Use ENGINE_get_id() instead of ENGINE_get_name() (diff) | |
download | openssl-51fe9b00d2fe33aa383f9c04b9c4ec153af63c45.tar.xz openssl-51fe9b00d2fe33aa383f9c04b9c4ec153af63c45.zip |
fix ERR_add_error_vdata() for use with multiple args/calls
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9558)
Diffstat (limited to 'crypto/err/err.c')
-rw-r--r-- | crypto/err/err.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = "<NULL>"; |