cvs: php4 /main SAPI.c

From: Date: Tue, 18 Jun 2002 12:57:11 +0000
Subject: cvs: php4 /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12404@lists.php.net to get a copy of this message
sesser Tue Jun 18 08:57:11 2002 EDT Modified files: /php4/main SAPI.c Log: keep fingers away from already freed memory. Index: php4/main/SAPI.c diff -u php4/main/SAPI.c:1.130 php4/main/SAPI.c:1.131 --- php4/main/SAPI.c:1.130 Tue Jun 18 06:16:36 2002 +++ php4/main/SAPI.c Tue Jun 18 08:57:09 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.130 2002/06/18 10:16:36 sander Exp $ */ +/* $Id: SAPI.c,v 1.131 2002/06/18 12:57:09 sesser Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -558,13 +558,13 @@ if (retval & SAPI_HEADER_ADD) { /* in replace mode first remove the header if it already exists in the headers llist */ if (replace) { - colon_offset = strchr(header_line, ':'); + colon_offset = strchr(sapi_header.header, ':'); if (colon_offset) { char sav; colon_offset++; sav = *colon_offset; *colon_offset = 0; - zend_llist_del_element(&SG(sapi_headers).headers, header_line, (int(*)(void*, void*))sapi_find_matching_header); + zend_llist_del_element(&SG(sapi_headers).headers, sapi_header.header, (int(*)(void*, void*))sapi_find_matching_header); *colon_offset = sav; } }

« previous php.cvs (#12404) next »