Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ext/openssl/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2552,6 +2552,9 @@ static STACK_OF(X509) *php_array_to_X509_sk(zval * zcerts, uint32_t arg_num, con
bool free_cert;

sk = sk_X509_new_null();
if (sk == NULL) {
goto clean_exit;
}

/* get certs */
if (Z_TYPE_P(zcerts) == IS_ARRAY) {
Expand Down Expand Up @@ -5797,6 +5800,9 @@ PHP_FUNCTION(openssl_pkcs7_encrypt)
}

recipcerts = sk_X509_new_null();
if (recipcerts == NULL) {
goto clean_exit;
}

/* get certs */
if (Z_TYPE_P(zrecipcerts) == IS_ARRAY) {
Expand Down Expand Up @@ -6404,6 +6410,9 @@ PHP_FUNCTION(openssl_cms_encrypt)
}

recipcerts = sk_X509_new_null();
if (recipcerts == NULL) {
goto clean_exit;
}

/* get certs */
if (Z_TYPE_P(zrecipcerts) == IS_ARRAY) {
Expand Down
Loading