mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-27 18:24:37 +00:00
coverity 1462572 Dereference after null check
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11651)
This commit is contained in:
parent
61cdc2a08d
commit
cb383f10d1
@ -420,9 +420,13 @@ static int load_pkcs12(BIO *in, const char *desc,
|
|||||||
char tpass[PEM_BUFSIZE];
|
char tpass[PEM_BUFSIZE];
|
||||||
int len, ret = 0;
|
int len, ret = 0;
|
||||||
PKCS12 *p12;
|
PKCS12 *p12;
|
||||||
|
|
||||||
p12 = d2i_PKCS12_bio(in, NULL);
|
p12 = d2i_PKCS12_bio(in, NULL);
|
||||||
if (p12 == NULL && desc != NULL) {
|
if (p12 == NULL) {
|
||||||
BIO_printf(bio_err, "Error loading PKCS12 file for %s\n", desc);
|
if (desc != NULL)
|
||||||
|
BIO_printf(bio_err, "Error loading PKCS12 file for %s\n", desc);
|
||||||
|
else
|
||||||
|
BIO_printf(bio_err, "Error loading PKCS12 file\n");
|
||||||
goto die;
|
goto die;
|
||||||
}
|
}
|
||||||
/* See if an empty password will do */
|
/* See if an empty password will do */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user