--------------------- PatchSet 11590 Date: 2007/08/27 21:57:17 Author: hno Branch: HEAD Tag: (none) Log: Verify the URL on memory cache hits Members: src/client_side.c:1.734->1.735 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid/squid/src/client_side.c,v retrieving revision 1.734 retrieving revision 1.735 diff -u -r1.734 -r1.735 --- squid/src/client_side.c 24 Aug 2007 14:54:05 -0000 1.734 +++ squid/src/client_side.c 27 Aug 2007 21:57:17 -0000 1.735 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.734 2007/08/24 14:54:05 hno Exp $ + * $Id: client_side.c,v 1.735 2007/08/27 21:57:17 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -2134,6 +2134,11 @@ clientProcessMiss(http); return; } + if (strcmp(mem->url, urlCanonical(r)) != 0) { + debug(33, 1) ("clientCacheHit: URL mismatch '%s' != '%s'?\n", e->mem_obj->url, urlCanonical(r)); + clientProcessMiss(http); + return; + } /* * Got the headers, now grok them */