summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_http.c b/ot_http.c
index 5e10d59..e1798dc 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -601,7 +601,7 @@ static ssize_t http_handle_announce(const int64_t sock, struct ot_workstruct
601 char *tmp_buf1 = ws->reply, *tmp_buf2 = ws->reply + 16; 601 char *tmp_buf1 = ws->reply, *tmp_buf2 = ws->reply + 16;
602 len = urlencoded_parse(&read_ptr, tmp_buf2, SCAN_SEARCHPATH_VALUE); 602 len = urlencoded_parse(&read_ptr, tmp_buf2, SCAN_SEARCHPATH_VALUE);
603 tmp_buf2[len] = 0; 603 tmp_buf2[len] = 0;
604 if ((len <= 0) || !ip_parse(tmp_buf2, tmp_buf1)) 604 if ((len <= 0) || ip_parse(tmp_buf2, tmp_buf1) != (size_t)len)
605 HTTPERROR_400_PARAM; 605 HTTPERROR_400_PARAM;
606 OT_SETIP(&ws->peer, tmp_buf1); 606 OT_SETIP(&ws->peer, tmp_buf1);
607 } break; 607 } break;