Skip to content

Commit 7a703e6

Browse files
committed
Fixed bug #33394 (Socket Timeout on SOAP request causes general exception in Apache process).
1 parent 58ed71c commit 7a703e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/soap/php_http.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, in
192192
php_stream_close(stream);
193193
stream = NULL;
194194
}
195-
efree(http_headers);
195+
if (http_headers) {
196+
efree(http_headers);
197+
}
196198
}
197199
#ifdef ZEND_ENGINE_2
198200
/* enable SSL transport layer */

0 commit comments

Comments
 (0)