diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-10-12 10:36:20 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-10-21 18:02:35 +0200 |
commit | a8086e6bfc37355626393751a94bc5c92df7e9d3 (patch) | |
tree | d702fc114219808d8c123ef5284f3be1e84abecf /crypto/conf | |
parent | fba324204f3bdd8ba9e99d42db030aaf6482d896 (diff) |
stack: Do not add error if pop/shift/value accesses outside of the stack
This partially reverts commit 30eba7f35983a917f1007bce45040c0af3442e42.
This is legitimate use of the stack functions and no error
should be reported apart from the NULL return value.
Fixes #19389
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19400)
Diffstat (limited to 'crypto/conf')
-rw-r--r-- | crypto/conf/conf_def.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c index b6b56cd967..5e81d9e941 100644 --- a/crypto/conf/conf_def.c +++ b/crypto/conf/conf_def.c @@ -294,7 +294,7 @@ static int def_load_bio(CONF *conf, BIO *in, long *line) } #endif /* no more files in directory, continue with processing parent */ - if (sk_BIO_num(biosk) < 1 || (parent = sk_BIO_pop(biosk)) == NULL) { + if ((parent = sk_BIO_pop(biosk)) == NULL) { /* everything processed get out of the loop */ break; } else { |