diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2022-06-27 07:37:58 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2022-06-27 07:37:58 +0200 |
commit | 4b7afb1da866e163f7e6a0e089e948644032260a (patch) | |
tree | 346330a4a8b853713d6439df651962550ad13627 /daemon/http.c | |
parent | Merge !1311: daemon/http: improve URI checks (diff) | |
download | knot-resolver-4b7afb1da866e163f7e6a0e089e948644032260a.tar.xz knot-resolver-4b7afb1da866e163f7e6a0e089e948644032260a.zip |
nit: daemon/http: remove dead code
Diffstat (limited to 'daemon/http.c')
-rw-r--r-- | daemon/http.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/daemon/http.c b/daemon/http.c index 3347aa6f..421d5b40 100644 --- a/daemon/http.c +++ b/daemon/http.c @@ -231,9 +231,6 @@ static int process_uri_path(struct http_ctx *ctx, const char* path, int32_t stre uint8_t *dest; uint32_t remaining; - if (!path) - return kr_error(EINVAL); - char *query_mark = strstr(path, "?"); if (!query_mark || strlen(query_mark) == 0) /* no parameters in path */ return kr_error(EINVAL); |