]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to unlock cache_lookup message for malformed records.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 13 Aug 2025 10:02:41 +0000 (12:02 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 13 Aug 2025 10:02:41 +0000 (12:02 +0200)
daemon/remote.c
doc/Changelog

index 0b1cd64c50caf6b2d1f2b3a917d8698f40658a11..20221d64e64097f8613c6ebeb8658896f1994289 100644 (file)
@@ -1825,6 +1825,7 @@ cache_lookup_msg(struct lruhash_entry* e, void* arg)
                        for(j=0; j<rd->count + rd->rrsig_count; j++) {
                                if(!packed_rr_to_string(rk, j,
                                        *inf->worker->env.now, s, sizeof(s))) {
+                                       rrset_array_unlock(d->ref, d->rrset_count);
                                        ssl_printf(inf->ssl, "BADRR\n");
                                        return;
                                }
index 0ae4873ef5740345929a4f78d47f517c6ce1f3e6..7000b1649330bc95a471de7a78a44e0020d3a9e1 100644 (file)
@@ -2,6 +2,7 @@
        - unbound-control cache_lookup <domains> prints the cached rrsets
          and messages for those.
        - Fix to remove debug from cache_lookup.
+       - Fix to unlock cache_lookup message for malformed records.
 
 12 August 2025: Wouter
        - Fix that unbound-control dump_cache releases the cache locks