]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Missed the second strnstr... fixed.
authorerdgeist <>
Sat, 24 Nov 2007 20:34:41 +0000 (20:34 +0000)
committererdgeist <>
Sat, 24 Nov 2007 20:34:41 +0000 (20:34 +0000)
opentracker.c

index 9b8ea5b117918b0874250b6759738d528e876d8e..15322143c00fa3d648f95b33e6e2249f666bc1ab 100644 (file)
@@ -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;
       }