cvs: php4 /ext/curl curl.c

From: Date: Sun, 05 Nov 2000 16:25:26 +0000
Subject: cvs: php4 /ext/curl curl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2484@lists.php.net to get a copy of this message
stas Sun Nov 5 08:25:26 2000 EDT Modified files: /php4/ext/curl curl.c Log: Fix crash from #7577 (torben@php.net) Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.21 php4/ext/curl/curl.c:1.22 --- php4/ext/curl/curl.c:1.21 Fri Oct 27 12:10:21 2000 +++ php4/ext/curl/curl.c Sun Nov 5 08:25:26 2000 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: curl.c,v 1.21 2000/10/27 19:10:21 sterling Exp $ */ +/* $Id: curl.c,v 1.22 2000/11/05 16:25:26 stas Exp $ */ #include "php.h" @@ -534,6 +534,10 @@ SEPARATE_ZVAL(current); convert_to_string_ex(current); + if (Z_STRLEN_PP(current) < 1) { + continue; + } + indiv_command = estrndup(Z_STRVAL_PP(current), Z_STRLEN_PP(current)); commands = curl_slist_append(commands, indiv_command); if (!commands) {

« previous php.cvs (#2484) next »