Skip to content

Commit e6c418b

Browse files
committed
fix build
1 parent 70729c2 commit e6c418b

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
@@ -1452,7 +1452,7 @@ static zend_result php_openssl_enable_server_sni(
14521452
zend_ulong key_index;
14531453
int i = 0;
14541454
char resolved_path_buff[MAXPATHLEN];
1455-
SSL_CTX *ctx;
1455+
SSL_CTX *ctx = NULL;
14561456

14571457
/* If the stream ctx disables SNI we're finished here */
14581458
if (GET_VER_OPT("SNI_enabled") && !zend_is_true(val)) {
@@ -1561,7 +1561,6 @@ static zend_result php_openssl_enable_server_sni(
15611561
}
15621562
} else {
15631563
php_error_docref(NULL, E_WARNING, "SNI_server_certs options values must be of type array|string");
1564-
return FAILURE;
15651564
}
15661565

15671566
if (ctx == NULL) {

0 commit comments

Comments
 (0)