diff options
author | erdgeist <> | 2009-02-03 16:46:16 +0000 |
---|---|---|
committer | erdgeist <> | 2009-02-03 16:46:16 +0000 |
commit | 9c25f99b3de9e31824dc1c442bd9f0129b04804f (patch) | |
tree | 8731d7e5cb6021717e10edbe50827edd3b2374dc /ot_http.c | |
parent | 01408992b78b6541263e3fcbfa350932a376e7c0 (diff) |
Reverse logic... do only fail if scan_ip6 cant parse
Diffstat (limited to 'ot_http.c')
-rw-r--r-- | ot_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -377,7 +377,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, | |||
377 | char *tmp_buf1 = ws->reply, *tmp_buf2 = ws->reply+16; | 377 | char *tmp_buf1 = ws->reply, *tmp_buf2 = ws->reply+16; |
378 | len = scan_urlencoded_query( &read_ptr, tmp_buf2, SCAN_SEARCHPATH_VALUE ); | 378 | len = scan_urlencoded_query( &read_ptr, tmp_buf2, SCAN_SEARCHPATH_VALUE ); |
379 | tmp_buf2[len] = 0; | 379 | tmp_buf2[len] = 0; |
380 | if( ( len <= 0 ) || scan_ip6( tmp_buf2, tmp_buf1 ) ) HTTPERROR_400_PARAM; | 380 | if( ( len <= 0 ) || !scan_ip6( tmp_buf2, tmp_buf1 ) ) HTTPERROR_400_PARAM; |
381 | OT_SETIP( &peer, tmp_buf1 ); | 381 | OT_SETIP( &peer, tmp_buf1 ); |
382 | } | 382 | } |
383 | break; | 383 | break; |