Skip to content

Commit

Permalink
server: remove redundant condition
Browse files Browse the repository at this point in the history
`end` is always non-null here.

Closes curl#6576
  • Loading branch information
MarcelRaad committed Feb 10, 2021
1 parent 1cd823e commit 1636076
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/server/rtspd.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ static int ProcessRequest(struct httprequest *req)
if(!req->pipe &&
req->open &&
req->prot_version >= 11 &&
end &&
req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) &&
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
!strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) {
Expand Down
1 change: 0 additions & 1 deletion tests/server/sws.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,6 @@ static int ProcessRequest(struct httprequest *req)

if(req->open &&
req->prot_version >= 11 &&
end &&
req->reqbuf + req->offset > end + strlen(end_of_headers) &&
!req->cl &&
(!strncmp(req->reqbuf, "GET", strlen("GET")) ||
Expand Down

0 comments on commit 1636076

Please sign in to comment.