From: Dmitry Stogov Date: Wed, 7 Sep 2005 15:36:31 +0000 (+0000) Subject: Fixed memory allocation bug X-Git-Tag: RELEASE_1_0RC1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a39d704c41a90d95925d2cdda6c27911081c46c;p=php Fixed memory allocation bug --- diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index da02dd02ad..88ff86c8b6 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -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);