]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fix build without doh2 support
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 30 Jul 2021 07:49:04 +0000 (09:49 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 30 Jul 2021 07:49:04 +0000 (09:49 +0200)
NEWS
daemon/worker.c

diff --git a/NEWS b/NEWS
index a52168792c7ae93a2f3203dd4b7e10ebfe465816..610fcdff2d0a214c2dc71c476d24e33e65bc6060 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+Knot Resolver 5.4.1 (2021-0m-dd)
+================================
+
+Bugfixes
+--------
+- fix build without doh2 support (!1197)
+
+
 Knot Resolver 5.4.0 (2021-07-29)
 ================================
 
index 10e20ae484ee3e8eeaacf6dca755b60aa13239eb..792d7578a024aa422801ec542b24f80ca052d8db 100644 (file)
@@ -1738,11 +1738,13 @@ int worker_submit(struct session *session,
            (is_query == is_outgoing)) {
                if (!is_outgoing) {
                        the_worker->stats.dropped += 1;
+               #if ENABLE_DOH2
                        if (http_ctx) {
                                struct http_stream stream = queue_head(http_ctx->streams);
                                http_free_headers(stream.headers);
                                queue_pop(http_ctx->streams);
                        }
+               #endif
                }
                return kr_error(EILSEQ);
        }