]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Accept clients that forget to spell announce at all...
authorerdgeist <>
Tue, 23 Oct 2007 00:30:46 +0000 (00:30 +0000)
committererdgeist <>
Tue, 23 Oct 2007 00:30:46 +0000 (00:30 +0000)
opentracker.c

index 68d7a2e9e481a46f9269ec697bf2beaab5f35e80..41df0eedcee561263a0228c74387a3bc49c28a94 100644 (file)
@@ -555,7 +555,7 @@ ANNOUNCE_WORKAROUND:
                           ot_overall_tcp_connections+ot_overall_udp_connections, ot_overall_tcp_successfulannounces+ot_overall_udp_successfulannounces, (int)t, (int)(t / 3600), (ot_overall_tcp_connections+ot_overall_udp_connections) / ( (unsigned int)t ? (unsigned int)t : 1 ) );
     break;
   default:
-    if( *data == 'a' ) goto ANNOUNCE_WORKAROUND;
+    if( ( *data == 'a' ) || ( *data == '?' ) ) goto ANNOUNCE_WORKAROUND;
     if( !byte_diff( data, 2, "sc" ) ) goto SCRAPE_WORKAROUND;
     HTTPERROR_404;
   }