MINOR: http: remove useless wrapping checks in http_msg_analyzer
The message cannot wrap here.
diff --git a/src/proto_http.c b/src/proto_http.c
index 1b2bfbd..f81e71e 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -1266,9 +1266,11 @@
/*
* This function parses an HTTP message, either a request or a response,
- * depending on the initial msg->msg_state. It can be preempted everywhere
- * when data are missing and recalled at the exact same location with no
- * information loss. The header index is re-initialized when switching from
+ * depending on the initial msg->msg_state. The caller is responsible for
+ * ensuring that the message does not wrap. The function can be preempted
+ * everywhere when data are missing and recalled at the exact same location
+ * with no information loss. The message may even be realigned between two
+ * calls. The header index is re-initialized when switching from
* MSG_R[PQ]BEFORE to MSG_RPVER|MSG_RQMETH. It modifies msg->sol among other
* fields. Note that msg->som and msg->sol will be initialized after completing
* the first state, so that none of the msg pointers has to be initialized
@@ -1281,8 +1283,8 @@
struct buffer *buf = msg->buf;
state = msg->msg_state;
- ptr = buffer_wrap_add(buf, buf->p + msg->next);
- end = buffer_wrap_add(buf, buf->p + buf->i);
+ ptr = buf->p + msg->next;
+ end = buf->p + buf->i;
if (unlikely(ptr >= end))
goto http_msg_ood;