]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Just one more typo
authorerdgeist <>
Sun, 21 Oct 2007 04:23:39 +0000 (04:23 +0000)
committererdgeist <>
Sun, 21 Oct 2007 04:23:39 +0000 (04:23 +0000)
opentracker.c

index aefdc466c8ff9a18bd5e3f15a537336e5eacf14a..ae33e62e01c9ae245bf6f25d519533d30d9d5c87 100644 (file)
@@ -532,8 +532,9 @@ ANNOUNCE_WORKAROUND:
     ot_overall_tcp_successfulannounces++;
     break;
   case 9:
-    if( byte_diff( data, 9, "announce " ) ) HTTPERROR_404;
-    goto ANNOUNCE_WORKAROUND;
+    if( !byte_diff( data, 9, "announce " ) ) goto ANNOUNCE_WORKAROUND;
+    if( !byte_diff( data, 9, "announce/" ) ) goto ANNOUNCE_WORKAROUND;
+    HTTPERROR_404;
   case 10:
     if( byte_diff( data, 10, "scrape.php" ) ) HTTPERROR_404;
     goto SCRAPE_WORKAROUND;