X509_OBJECT_new: call X509err

mimic behavior of X509_OBJECT_new provided by OpenSSL >= 1.1
This commit is contained in:
Pierre-Louis Bonicoli 2016-11-12 00:58:18 +01:00
parent 6b38449875
commit e452c023ad
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}