From 09a662dfce63641aea2d873a4c3f3a85daaedb5b Mon Sep 17 00:00:00 2001
From: erdgeist <>
Date: Sat, 24 Nov 2007 20:34:41 +0000
Subject: Missed the second strnstr... fixed.

---
 opentracker.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/opentracker.c b/opentracker.c
index 9b8ea5b..1532214 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -388,7 +388,8 @@ LOG_TO_STDERR( "sync: %d.%d.%d.%d\n", h->ip[0], h->ip[1], h->ip[2], h->ip[3] );
 
     if( mode == TASK_STATS_TPB ) {
 #ifdef WANT_COMPRESSION_GZIP
-      if( strnstr( d, "gzip", l ) ) {
+      d[l-1] = 0;
+      if( strstr( d, "gzip" ) ) {
         h->flag |= STRUCT_HTTP_FLAG_GZIP;
         format |= TASK_FLAG_GZIP;
       }
-- 
cgit v1.2.3