]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
break belongs inside the guard
authorDirk Engling <erdgeist@erdgeist.org>
Fri, 28 Apr 2017 13:43:14 +0000 (15:43 +0200)
committerDirk Engling <erdgeist@erdgeist.org>
Fri, 28 Apr 2017 13:43:14 +0000 (15:43 +0200)
ot_http.c

index 0e3cc29994c529471f718d2d4a9dd967bf702fe7..e05db7264526936e3dd5424dc685bdbe474af6aa 100644 (file)
--- a/ot_http.c
+++ b/ot_http.c
@@ -497,8 +497,8 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws,
           return ws->reply_size = sprintf( ws->reply, "Successfully added.\n" );
         //}
       }
-#endif
         break;
+#endif
       case 9: /* matched "peer_id" */
         /* ignore this, when we have less than 20 bytes */
         if( scan_urlencoded_query( &read_ptr, write_ptr = read_ptr, SCAN_SEARCHPATH_VALUE ) != 20 ) HTTPERROR_400_PARAM;