X509_OBJECT_new: call X509err
mimic behavior of X509_OBJECT_new provided by OpenSSL >= 1.1
This commit is contained in:
parent
6b38449875
commit
e452c023ad
@ -262,6 +262,8 @@ X509_OBJECT *X509_OBJECT_new()
|
||||
if (ret != NULL) {
|
||||
memset(ret, 0, sizeof(*ret));
|
||||
ret->type = X509_LU_FAIL;
|
||||
} else {
|
||||
X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user