Poly 1.1p0 patched

From: Alex Rousskov (rousskov@ircache.net)
Date: Wed Apr 28 1999 - 01:21:37 MDT


Hi there,

        A small but useful patch for 1.1p0 (attached) is available at
        http://polygraph.ircache.net/sources/polygraph-1.1p0-src/

The patch is against Http.cc in src/ directory. The patch fixes a request
header parsing problem introduced in 1.1p0. The bug could break hit
detection.

Alex.

Index: Http.cc
===================================================================
RCS file: /surf1/CVS/polygraph/src/Http.cc,v
retrieving revision 1.4
diff -u -r1.4 Http.cc
--- Http.cc 1999/04/26 00:55:59 1.4
+++ Http.cc 1999/04/28 07:06:04
@@ -152,12 +152,10 @@
         else
         if (fieldEq("GET ", 4)) {
                 if (const char *h = strchr(theSrchBuf, '_')) {
- theSrchBuf = ++h;
- theObjId = xatoi(theSrchBuf, -1);
+ theObjId = xatoi(h+1, -1);
                 }
                 if (const char *h = strchr(theSrchBuf, ' ')) {
- theSrchBuf = h + 6;
- isDbl(theSrchBuf, theHttpVer);
+ isDbl(h+6, theHttpVer);
                 }
         } else
         if (fieldEq("X-ETag:", 7)) {



This archive was generated by hypermail 2b29 : Tue Jul 10 2001 - 12:00:06 MDT