]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
workaround for some weird requests
authordenis <>
Wed, 24 Jan 2007 20:48:25 +0000 (20:48 +0000)
committerdenis <>
Wed, 24 Jan 2007 20:48:25 +0000 (20:48 +0000)
opentracker.c

index c29a613de72154740252576bbc7bc5b7fc356b14..64beaa22e2f6af7767406b3f64c08014efb0baf3 100644 (file)
@@ -306,7 +306,8 @@ e400_param:
           port = htons( tmp ); OT_SETPORT ( &peer, &port );
         } else if(!byte_diff(data,4,"left")) {
           size_t len = scan_urlencoded_query( &c, data = c, SCAN_SEARCHPATH_VALUE );
-          if( ( len <= 0 ) || scan_fixed_int( data, len, &tmp ) ) goto e400_param;
+          if( len <= 0 ) goto e400_param;
+          if( scan_fixed_int( data, len, &tmp ) ) tmp = 0;
           if( !tmp ) OT_FLAG( &peer ) |= PEER_FLAG_SEEDING;
         } else
           scan_urlencoded_query( &c, NULL, SCAN_SEARCHPATH_VALUE );
@@ -547,8 +548,10 @@ void handle_accept( int64 serversocket ) {
 
   if( errno==EAGAIN )
     io_eagain( serversocket );
+/* 
   else
     carp( "socket_accept4" );
+*/
 }
 
 void handle_timeouted( ) {