summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2017-04-28 15:43:14 +0200
committerDirk Engling <erdgeist@erdgeist.org>2017-04-28 15:43:14 +0200
commit9c7be324f5a4306dd81eab2f982f87e2c42ffdf1 (patch)
tree9a5058ea1c7c7dc39c1f814163119451d0b51867 /ot_http.c
parentd1e6e4486c14e56da665c5690844ef5f2e893f0a (diff)
break belongs inside the guard
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_http.c b/ot_http.c
index 0e3cc29..e05db72 100644
--- 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,
497 return ws->reply_size = sprintf( ws->reply, "Successfully added.\n" ); 497 return ws->reply_size = sprintf( ws->reply, "Successfully added.\n" );
498 //} 498 //}
499 } 499 }
500#endif
501 break; 500 break;
501#endif
502 case 9: /* matched "peer_id" */ 502 case 9: /* matched "peer_id" */
503 /* ignore this, when we have less than 20 bytes */ 503 /* ignore this, when we have less than 20 bytes */
504 if( scan_urlencoded_query( &read_ptr, write_ptr = read_ptr, SCAN_SEARCHPATH_VALUE ) != 20 ) HTTPERROR_400_PARAM; 504 if( scan_urlencoded_query( &read_ptr, write_ptr = read_ptr, SCAN_SEARCHPATH_VALUE ) != 20 ) HTTPERROR_400_PARAM;