mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
fix null pointer deref (found by cppcheck:nullPointerRedundantCheck) in src/x509.c:wolfSSL_X509_EXTENSION_create_by_OBJ().
This commit is contained in:
@ -307,7 +307,9 @@ WOLFSSL_X509_EXTENSION* wolfSSL_X509_EXTENSION_create_by_OBJ(
|
|||||||
wolfSSL_ASN1_STRING_free(&ret->value);
|
wolfSSL_ASN1_STRING_free(&ret->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (err == 0) {
|
||||||
ret->crit = crit;
|
ret->crit = crit;
|
||||||
|
}
|
||||||
|
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
ret->obj = wolfSSL_ASN1_OBJECT_dup(obj);
|
ret->obj = wolfSSL_ASN1_OBJECT_dup(obj);
|
||||||
|
Reference in New Issue
Block a user