Skip to content

Commit 6cf63de

Browse files
committed
fix build
1 parent 70c4419 commit 6cf63de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ static zend_result php_openssl_enable_server_sni(
14481448
zend_ulong key_index;
14491449
int i = 0;
14501450
char resolved_path_buff[MAXPATHLEN];
1451-
SSL_CTX *ctx;
1451+
SSL_CTX *ctx = NULL;
14521452

14531453
/* If the stream ctx disables SNI we're finished here */
14541454
if (GET_VER_OPT("SNI_enabled") && !zend_is_true(val)) {
@@ -1557,7 +1557,6 @@ static zend_result php_openssl_enable_server_sni(
15571557
}
15581558
} else {
15591559
php_error_docref(NULL, E_WARNING, "SNI_server_certs options values must be of type array|string");
1560-
return FAILURE;
15611560
}
15621561

15631562
if (ctx == NULL) {

0 commit comments

Comments
 (0)