summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-10-21 05:26:55 +0000
committererdgeist <>2007-10-21 05:26:55 +0000
commit3aa286d9b84f1f5ccb76a08e60fbf26ed30339aa (patch)
tree2211fef065bd4c4075033d6026ee9ab54fb4667d
parent00972c6c68c44aecafd49add235346a761074a90 (diff)
Last fix was not enough to get rid off those 1600er buggers.
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index 2339f66..d4cfea4 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -409,7 +409,7 @@ SCRAPE_WORKAROUND:
409 switch( scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_PARAM ) ) { 409 switch( scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_PARAM ) ) {
410 case -2: scanon = 0; break; /* TERMINATOR */ 410 case -2: scanon = 0; break; /* TERMINATOR */
411 case -1: 411 case -1:
412 if( scrape_count ) 412 if( scrape_count )
413 goto UTORRENT1600_WORKAROUND; 413 goto UTORRENT1600_WORKAROUND;
414 HTTPERROR_400_PARAM; /* PARSE ERROR */ 414 HTTPERROR_400_PARAM; /* PARSE ERROR */
415 default: scan_urlencoded_skipvalue( &c ); break; 415 default: scan_urlencoded_skipvalue( &c ); break;
@@ -419,7 +419,7 @@ SCRAPE_WORKAROUND:
419 continue; 419 continue;
420 } 420 }
421 /* ignore this, when we have less than 20 bytes */ 421 /* ignore this, when we have less than 20 bytes */
422 if( scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE ) != 20 ) HTTPERROR_400_PARAM; 422 if( scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE ) < sizeof(ot_hash) ) HTTPERROR_400_PARAM;
423 if( scrape_count < OT_MAXMULTISCRAPE_COUNT ) 423 if( scrape_count < OT_MAXMULTISCRAPE_COUNT )
424 memmove( multiscrape_buf + scrape_count++, data, sizeof(ot_hash) ); 424 memmove( multiscrape_buf + scrape_count++, data, sizeof(ot_hash) );
425 break; 425 break;