mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
server: remove redundant condition
`end` is always non-null here. Closes https://github.com/curl/curl/pull/6576
This commit is contained in:
parent
1cd823ed5a
commit
1636076e70
@ -552,7 +552,6 @@ static int ProcessRequest(struct httprequest *req)
|
|||||||
if(!req->pipe &&
|
if(!req->pipe &&
|
||||||
req->open &&
|
req->open &&
|
||||||
req->prot_version >= 11 &&
|
req->prot_version >= 11 &&
|
||||||
end &&
|
|
||||||
req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) &&
|
req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) &&
|
||||||
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
|
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
|
||||||
!strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) {
|
!strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) {
|
||||||
|
@ -748,7 +748,6 @@ static int ProcessRequest(struct httprequest *req)
|
|||||||
|
|
||||||
if(req->open &&
|
if(req->open &&
|
||||||
req->prot_version >= 11 &&
|
req->prot_version >= 11 &&
|
||||||
end &&
|
|
||||||
req->reqbuf + req->offset > end + strlen(end_of_headers) &&
|
req->reqbuf + req->offset > end + strlen(end_of_headers) &&
|
||||||
!req->cl &&
|
!req->cl &&
|
||||||
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
|
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user