--------------------- PatchSet 11709 Date: 2007/09/25 00:51:55 Author: hno Branch: HEAD Tag: (none) Log: Make memHaveHeaders() accept a NULL mem_obj (results in false) Members: src/store.c:1.579->1.580 Index: squid/src/store.c =================================================================== RCS file: /cvsroot/squid/squid/src/store.c,v retrieving revision 1.579 retrieving revision 1.580 diff -u -r1.579 -r1.580 --- squid/src/store.c 29 Aug 2007 21:13:17 -0000 1.579 +++ squid/src/store.c 25 Sep 2007 00:51:55 -0000 1.580 @@ -1,6 +1,6 @@ /* - * $Id: store.c,v 1.579 2007/08/29 21:13:17 hno Exp $ + * $Id: store.c,v 1.580 2007/09/25 00:51:55 hno Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -128,7 +128,9 @@ int memHaveHeaders(const MemObject * mem) { - if (mem->reply == NULL) + if (!mem) + return 0; + if (!mem->reply) return 0; if (mem->reply->pstate != psParsed) return 0;