]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
server: remove redundant condition
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 7 Feb 2021 10:45:16 +0000 (11:45 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 10 Feb 2021 15:47:34 +0000 (16:47 +0100)
`end` is always non-null here.

Closes https://github.com/curl/curl/pull/6576

tests/server/rtspd.c
tests/server/sws.c

index 39f6d1413b73757b9ce2fe387d89420c2c0593ad..7d5e9d9bd35430a59fd74f66c12a2c37f1ca1a68 100644 (file)
@@ -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")))) {
index 702560a4ff8f78a667a6b09ee0539c2916645d4e..fa6c505823db44d5110670a6aa36705ba9adf062 100644 (file)
@@ -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")) ||