mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Fixed memory allocation bug
This commit is contained in:
parent
7f293b91b4
commit
8a39d704c4
@ -451,7 +451,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
|
||||
if (clisock >= 0) {
|
||||
php_openssl_netstream_data_t *clisockdata;
|
||||
|
||||
clisockdata = pemalloc(sizeof(*clisockdata), stream->is_persistent);
|
||||
clisockdata = emalloc(sizeof(*clisockdata));
|
||||
|
||||
if (clisockdata == NULL) {
|
||||
closesocket(clisock);
|
||||
|
Loading…
Reference in New Issue
Block a user