]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
nit: daemon/http: remove dead code
authorOto Šťáva <oto.stava@nic.cz>
Mon, 27 Jun 2022 05:37:58 +0000 (07:37 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Mon, 27 Jun 2022 05:37:58 +0000 (07:37 +0200)
daemon/http.c

index 3347aa6f46fba23da73ca6b7bfa218de1cdad918..421d5b4032b26f13d5ebcd0548986c78f75cb9c3 100644 (file)
@@ -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);