From: W.C.A. Wijngaards Date: Tue, 5 Mar 2024 12:39:29 +0000 (+0100) Subject: - Fix for #1022: Fix ede prohibited in access control refused answers. X-Git-Tag: release-1.19.3rc1~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ec0b510f1c140c11f2125f39cfadc95332e42b17;p=thirdparty%2Funbound.git - Fix for #1022: Fix ede prohibited in access control refused answers. --- diff --git a/daemon/worker.c b/daemon/worker.c index b9ec7544b..176abf57d 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -1151,7 +1151,7 @@ deny_refuse(struct comm_point* c, enum acl_access acl, log_assert(sldns_buffer_limit(c->buffer) >= LDNS_HEADER_SIZE && LDNS_QDCOUNT(sldns_buffer_begin(c->buffer)) == 1); - sldns_buffer_skip(c->buffer, LDNS_HEADER_SIZE); /* skip header */ + sldns_buffer_set_position(c->buffer, LDNS_HEADER_SIZE); /* skip header */ /* check additional section is present and that we respond with EDEs */ if(LDNS_ARCOUNT(sldns_buffer_begin(c->buffer)) != 1 diff --git a/doc/Changelog b/doc/Changelog index dfe567bbe..04e77269f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +5 March 2024: Wouter + - Fix for #1022: Fix ede prohibited in access control refused answers. + 4 March 2024: Wouter - Fix edns subnet replies for scope zero answers to not get stored in the global cache, and in cachedb, when the upstream replies