diff options
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 4 |
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; |