diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2021-02-07 11:45:16 +0100 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2021-02-10 16:47:34 +0100 |
commit | 1636076e70067dbe03540c5c22ca86ac176c3391 (patch) | |
tree | e17395a7bfe088a84ad778b40dcb531507649d0a /tests | |
parent | 1cd823ed5ab590636fab218741dbf0a61f1d3157 (diff) | |
download | curl-1636076e70067dbe03540c5c22ca86ac176c3391.tar.gz |
server: remove redundant condition
`end` is always non-null here.
Closes https://github.com/curl/curl/pull/6576
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/rtspd.c | 1 | ||||
-rw-r--r-- | tests/server/sws.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/tests/server/rtspd.c b/tests/server/rtspd.c index 39f6d1413..7d5e9d9bd 100644 --- a/tests/server/rtspd.c +++ b/tests/server/rtspd.c @@ -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")))) { diff --git a/tests/server/sws.c b/tests/server/sws.c index 702560a4f..fa6c50582 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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")) || |