mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
e_loader_attic.c: Improve result handling of file_load_try_decode()
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/4930)
This commit is contained in:
parent
61dd4168f5
commit
09afbec94b
@ -1233,10 +1233,13 @@ static OSSL_STORE_INFO *file_load_try_decode(OSSL_STORE_LOADER_CTX *ctx,
|
||||
}
|
||||
if (result == NULL)
|
||||
result = tmp_result;
|
||||
if (result == NULL) /* e.g., PKCS#12 file decryption error */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (*matchcount == 1 && matching_handlers[0]->repeatable) {
|
||||
if (result != NULL
|
||||
&& *matchcount == 1 && matching_handlers[0]->repeatable) {
|
||||
ctx->_.file.last_handler = matching_handlers[0];
|
||||
ctx->_.file.last_handler_ctx = handler_ctx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user