From ac88ecbbaa27ec874dbda4114e12ac6702f9c39f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Tue, 16 Oct 2018 10:11:40 +0000 Subject: [PATCH] Fixes --- lib/dns/lowac.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/dns/lowac.c b/lib/dns/lowac.c index cb20110ca0..a877a299db 100644 --- a/lib/dns/lowac.c +++ b/lib/dns/lowac.c @@ -181,11 +181,12 @@ expire_entries(dns_lowac_t *lowac) { * Very unlikely, but can happen when we're between generations. * TODO verify that it's ok at all, maybe we're using the iterator wrong? */ - isc_refcount_increment(&entry->refcount); + isc_refcount_increment(&entry->refcount); + } else { + dns_lowac_entry_t *ent2 = ck_ht_entry_value(htitentry); + RUNTIME_CHECK(ent2 == entry); } entry->inht = false; - dns_lowac_entry_t *ent2 = ck_ht_entry_value(htitentry); - RUNTIME_CHECK(ent2 == entry); /* * We don't need to increment refcount since we have * not decremented it when removing from hashtable.