mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-21 13:59:40 +00:00
x509: fix coverity 1474470: NULL pointer dereference
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14716)
This commit is contained in:
parent
0391553485
commit
d0ea0eb331
@ -79,7 +79,7 @@ STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,
|
|||||||
|
|
||||||
if (x == NULL) {
|
if (x == NULL) {
|
||||||
ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER);
|
ERR_raise(ERR_LIB_X509, ERR_R_PASSED_NULL_PARAMETER);
|
||||||
goto err2;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*x == NULL) {
|
if (*x == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user