From a819448aefcf3943889ffa7fef188baddc407879 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 3 Apr 2017 14:07:22 +0200 Subject: [PATCH] rrcache, pktcache: better explain passing of ranks --- lib/layer/pktcache.c | 2 +- lib/layer/rrcache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/layer/pktcache.c b/lib/layer/pktcache.c index 806351f2d..39f440504 100644 --- a/lib/layer/pktcache.c +++ b/lib/layer/pktcache.c @@ -19,7 +19,7 @@ * This builtin module caches whole packets from/for negative answers. * * Note: it also persists some QUERY_DNSSEC_* flags. - * The ranks are stored in *rrset->additional (all are the same for one packet). + * The ranks are stored in *(uint8_t *)rrset->additional (all are the same for one packet). */ #include diff --git a/lib/layer/rrcache.c b/lib/layer/rrcache.c index ac54db38c..a9c725472 100644 --- a/lib/layer/rrcache.c +++ b/lib/layer/rrcache.c @@ -21,7 +21,7 @@ * Produce phase: if an RRset answering the query exists, the packet is filled * by it, including the corresponding RRSIGs (subject to some conditions). * Such a packet is recognizable: pkt->size == PKT_SIZE_NOWIRE, and QUERY_CACHED - * is set in the query. The ranks are stored in *rrset->additional. + * is set in the query. The ranks are stored in *(uint8_t *)rrset->additional. * * TODO */ -- 2.47.2