cvs: php4 /main SAPI.c

From: Date: Sun, 16 Dec 2001 21:40:21 +0000
Subject: cvs: php4 /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8676@lists.php.net to get a copy of this message
sesser Sun Dec 16 16:40:21 2001 EDT Modified files: /php4/main SAPI.c Log: fixed: WWW-Authenticate -> header_line got only freed when safe_mode was activ fixed: WWW-Authenticate -> content of header_line was changed after it was freed Index: php4/main/SAPI.c diff -u php4/main/SAPI.c:1.125 php4/main/SAPI.c:1.126 --- php4/main/SAPI.c:1.125 Sun Dec 16 09:47:18 2001 +++ php4/main/SAPI.c Sun Dec 16 16:40:20 2001 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.125 2001/12/16 14:47:18 sesser Exp $ */ +/* $Id: SAPI.c,v 1.126 2001/12/16 21:40:20 sesser Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -521,7 +521,7 @@ efree(result); efree(Z_STRVAL_P(repl_temp)); efree(repl_temp); - } + } else efree(header_line); #else if(PG(safe_mode)) { myuid = php_getuid(); @@ -532,10 +532,9 @@ sapi_header.header = newheader; sapi_header.header_len = newlen; efree(result); - } + } else efree(header_line); #endif } - *colon_offset = ':'; } }

« previous php.cvs (#8676) next »