From ba11247f9352268be29f860ee6985cb25a4c65d2 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 9 Jan 2017 09:47:06 +0000 Subject: [PATCH] - Fix #1202: Fix code comment that packed_rrset_data is not always 'packed'. git-svn-id: file:///svn/unbound/trunk@3984 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 4 ++++ util/data/packed_rrset.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 4cec01bc3..332482ac7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +9 January 2017: Wouter + - Fix #1202: Fix code comment that packed_rrset_data is not always + 'packed'. + 6 January 2017: Wouter - Fix #1201: Fix missing unlock in answer_from_cache error condition. diff --git a/util/data/packed_rrset.h b/util/data/packed_rrset.h index 6039aef24..e95605445 100644 --- a/util/data/packed_rrset.h +++ b/util/data/packed_rrset.h @@ -191,6 +191,12 @@ enum sec_status { * RRset data. * * The data is packed, stored contiguously in memory. + * + * It is not always stored contiguously, in that case, an unpacked-packed + * rrset has the arrays separate. A bunch of routines work on that, but + * the packed rrset that is contiguous is for the rrset-cache and the + * cache-response routines in daemon/worker.c. + * * memory layout: * o base struct * o rr_len size_t array