From 23ea641ba2a063cc99c82869061703d48bc674b2 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 23 Nov 2015 13:59:01 +0100 Subject: [PATCH] dirmngr: Fix pool detection. * dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses. Signed-off-by: Justus Winter --- dirmngr/ks-engine-hkp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dirmngr/ks-engine-hkp.c b/dirmngr/ks-engine-hkp.c index b9eca0e59..a08043f2c 100644 --- a/dirmngr/ks-engine-hkp.c +++ b/dirmngr/ks-engine-hkp.c @@ -246,9 +246,9 @@ arecords_is_pool (dns_addrinfo_t aibuf) n_v6 = n_v4 = 0; for (ai = aibuf; ai; ai = ai->next) { - if (ai->family != AF_INET6) + if (ai->family == AF_INET6) n_v6++; - else if (ai->family != AF_INET) + else if (ai->family == AF_INET) n_v4++; }