mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27: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);
|
||||
}
|
||||
|
||||
ret->crit = crit;
|
||||
if (err == 0) {
|
||||
ret->crit = crit;
|
||||
}
|
||||
|
||||
if (err == 0) {
|
||||
ret->obj = wolfSSL_ASN1_OBJECT_dup(obj);
|
||||
|
Reference in New Issue
Block a user