summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-22 18:58:19 +0100
committerMichael Adam <obnox@samba.org>2013-11-22 18:58:19 +0100
commitc82840bfcb8d48f2af1b7c00ab0e4cd6b8886302 (patch)
tree8688882e00034fa06c42316106137bd6e4515fe9 /src
parent49c55ed26c877a435ad081d98ba99294ac76262d (diff)
downloadtinyproxy-c82840bfcb8d48f2af1b7c00ab0e4cd6b8886302.tar.gz
tinyproxy-c82840bfcb8d48f2af1b7c00ab0e4cd6b8886302.zip
reqs: Fix CID 1130972 - remove logically dead code.
url == NULL is caught above. Found by coverity. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/reqs.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/reqs.c b/src/reqs.c
index f828065..a140f5c 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -357,15 +357,6 @@ BAD_REQUEST_ERROR:
goto fail;
}
- if (!url) {
- log_message (LOG_ERR,
- "process_request: Null URL on file descriptor %d",
- connptr->client_fd);
- indicate_http_error (connptr, 400, "Bad Request",
- "detail", "Request has an empty URL",
- "url", url, NULL);
- goto fail;
- }
#ifdef REVERSE_SUPPORT
if (config.reversepath_list != NULL) {
/*