From 9c25f99b3de9e31824dc1c442bd9f0129b04804f Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 3 Feb 2009 16:46:16 +0000 Subject: Reverse logic... do only fail if scan_ip6 cant parse --- ot_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot_http.c b/ot_http.c index d56564d..971d81d 100644 --- a/ot_http.c +++ b/ot_http.c @@ -377,7 +377,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, char *tmp_buf1 = ws->reply, *tmp_buf2 = ws->reply+16; len = scan_urlencoded_query( &read_ptr, tmp_buf2, SCAN_SEARCHPATH_VALUE ); tmp_buf2[len] = 0; - if( ( len <= 0 ) || scan_ip6( tmp_buf2, tmp_buf1 ) ) HTTPERROR_400_PARAM; + if( ( len <= 0 ) || !scan_ip6( tmp_buf2, tmp_buf1 ) ) HTTPERROR_400_PARAM; OT_SETIP( &peer, tmp_buf1 ); } break; -- cgit v1.2.3