From deb3a07fa41fbc57f7fb713f7e5798ccc6fc294b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 30 Jul 2021 09:49:04 +0200 Subject: [PATCH] fix build without doh2 support --- NEWS | 8 ++++++++ daemon/worker.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/NEWS b/NEWS index a52168792..610fcdff2 100644 --- 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) ================================ diff --git a/daemon/worker.c b/daemon/worker.c index 10e20ae48..792d7578a 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -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); } -- 2.47.2