summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authordenis <>2007-01-24 20:48:25 +0000
committerdenis <>2007-01-24 20:48:25 +0000
commite62887341649e16e72ce64f3bdea73a087287209 (patch)
treecbb50640b6daf3ad42eb2b78c10cd18f5a5034f3 /opentracker.c
parentfd73f958c2025861b5f2a9cf0b59d7b534971a0c (diff)
workaround for some weird requests
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index c29a613..64beaa2 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -306,7 +306,8 @@ e400_param:
306 port = htons( tmp ); OT_SETPORT ( &peer, &port ); 306 port = htons( tmp ); OT_SETPORT ( &peer, &port );
307 } else if(!byte_diff(data,4,"left")) { 307 } else if(!byte_diff(data,4,"left")) {
308 size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE ); 308 size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE );
309 if( ( len <= 0 ) || scan_fixed_int( data, len, &tmp ) ) goto e400_param; 309 if( len <= 0 ) goto e400_param;
310 if( scan_fixed_int( data, len, &tmp ) ) tmp = 0;
310 if( !tmp ) OT_FLAG( &peer ) |= PEER_FLAG_SEEDING; 311 if( !tmp ) OT_FLAG( &peer ) |= PEER_FLAG_SEEDING;
311 } else 312 } else
312 scan_urlencoded_query( &c, NULL, SCAN_SEARCHPATH_VALUE ); 313 scan_urlencoded_query( &c, NULL, SCAN_SEARCHPATH_VALUE );
@@ -547,8 +548,10 @@ void handle_accept( int64 serversocket ) {
547 548
548 if( errno==EAGAIN ) 549 if( errno==EAGAIN )
549 io_eagain( serversocket ); 550 io_eagain( serversocket );
551/*
550 else 552 else
551 carp( "socket_accept4" ); 553 carp( "socket_accept4" );
554*/
552} 555}
553 556
554void handle_timeouted( ) { 557void handle_timeouted( ) {