From 1636076e70067dbe03540c5c22ca86ac176c3391 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 7 Feb 2021 11:45:16 +0100 Subject: [PATCH] server: remove redundant condition `end` is always non-null here. Closes https://github.com/curl/curl/pull/6576 --- tests/server/rtspd.c | 1 - tests/server/sws.c | 1 - 2 files changed, 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")) ||