--------------------- PatchSet 10333 Date: 2007/12/28 06:22:18 Author: adri Branch: s27_adri Tag: (none) Log: httpState could be invalid here.. Members: src/http.c:1.63.2.3.4.23->1.63.2.3.4.24 Index: squid/src/http.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/http.c,v retrieving revision 1.63.2.3.4.23 retrieving revision 1.63.2.3.4.24 diff -u -r1.63.2.3.4.23 -r1.63.2.3.4.24 --- squid/src/http.c 28 Dec 2007 02:23:59 -0000 1.63.2.3.4.23 +++ squid/src/http.c 28 Dec 2007 06:22:18 -0000 1.63.2.3.4.24 @@ -1,6 +1,6 @@ /* - * $Id: http.c,v 1.63.2.3.4.23 2007/12/28 02:23:59 adri Exp $ + * $Id: http.c,v 1.63.2.3.4.24 2007/12/28 06:22:18 adri Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -1017,7 +1017,7 @@ assert(! memBufIsNull(&httpState->reply_hdr)); assert(buf_start - done < httpState->reply_hdr.size); httpAppendBody(httpState, httpState->reply_hdr.buf + done + buf_start, httpState->reply_hdr.size - done - buf_start, buffer_filled); - if (! memBufIsNull(&httpState->reply_hdr)) + if (cbdataValid(httpState) && (! memBufIsNull(&httpState->reply_hdr))) memBufReset(&httpState->reply_hdr); return; }