--------------------- PatchSet 11316 Date: 2007/03/11 22:08:00 Author: hno Branch: HEAD Tag: (none) Log: Handle garbage helper responses better in concurrent protocol format could esily be mistaken as responses on helper channel 0 due to strtol insanity Members: src/helper.c:1.63->1.64 Index: squid/src/helper.c =================================================================== RCS file: /cvsroot/squid/squid/src/helper.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -r1.63 -r1.64 --- squid/src/helper.c 8 Mar 2007 11:37:45 -0000 1.63 +++ squid/src/helper.c 11 Mar 2007 22:08:00 -0000 1.64 @@ -1,6 +1,6 @@ /* - * $Id: helper.c,v 1.63 2007/03/08 11:37:45 hno Exp $ + * $Id: helper.c,v 1.64 2007/03/11 22:08:00 hno Exp $ * * DEBUG: section 84 Helper process maintenance * AUTHOR: Harvest Derived? @@ -754,7 +754,7 @@ if (hlp->concurrency) { errno = 0; i = strtol(msg, &msg, 10); - if (errno) + if (msg == srv->rbuf || errno) i = -1; while (*msg && isspace((int) *msg)) msg++;