From: Rasmus Lerdorf Date: Sat, 8 Nov 2008 22:45:29 +0000 (+0000) Subject: Potential fix for bug #46525 X-Git-Tag: php-5.2.7RC4~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=058a282133e15a8748496ceaa63f29c7897968b1;p=php Potential fix for bug #46525 --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 9d0b9746b6..3fb5e37dda 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -447,6 +447,7 @@ static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) } } else if (response_status == 304 && h->header_len > sizeof("Content-Type:")-1 && strncasecmp(h->header, "Content-Type:", sizeof("Content-Type:")-1) == 0) { + h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); continue; } else { PHPWRITE_H(h->header, h->header_len);