diff options
-rw-r--r-- | opentracker.c | 5 |
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 | ||
554 | void handle_timeouted( ) { | 557 | void handle_timeouted( ) { |