Revision: 14410
Author: adrian.chadd
Date: Mon Feb 15 18:41:32 2010
Log: Commit changeset 12600 from Squid-2: fix potential SEGV from a malformed HTCP CLR packet.

http://code.google.com/p/lusca-cache/source/detail?r=14410

Modified:
 /branches/LUSCA_HEAD/src/htcp.c

=======================================
--- /branches/LUSCA_HEAD/src/htcp.c     Sat Feb 13 02:55:15 2010
+++ /branches/LUSCA_HEAD/src/htcp.c     Mon Feb 15 18:41:32 2010
@@ -973,6 +973,11 @@
        debug(31, 3) ("htcpHandleClr: htcpUnpackSpecifier failed\n");
        return;
     }
+    if (!s->request) {
+       debug(31, 2) ("htcpHandleTstRequest: failed to parse request\n");
+       htcpFreeSpecifier(s);
+       return;
+    }
     if (!htcpAccessCheck(Config.accessList.htcp_clr, s, from)) {
        debug(31, 2) ("htcpHandleClr: Access denied\n");
        htcpFreeSpecifier(s);

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to