1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

MFB: Fixed bug #44028 (crash inside stream_socket_enable_crypto() when

enabling encryption without crypto type)
This commit is contained in:
Ilia Alshanetsky
2008-02-03 16:14:44 +00:00
parent 986eed1379
commit fb738d95bf
+3
View File
@@ -1487,6 +1487,9 @@ PHP_FUNCTION(stream_socket_enable_crypto)
if (php_stream_xport_crypto_setup(stream, cryptokind, sessstream TSRMLS_CC) < 0) {
RETURN_FALSE;
}
} else if (enable) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "When enabling encryption you must specify the crypto type");
RETURN_FALSE;
}
ret = php_stream_xport_crypto_enable(stream, enable TSRMLS_CC);