dirmngr: Fix pool detection.
authorJustus Winter <justus@g10code.com>
Mon, 23 Nov 2015 12:59:01 +0000 (13:59 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 23 Nov 2015 13:00:47 +0000 (14:00 +0100)
* dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.

Signed-off-by: Justus Winter <justus@g10code.com>
dirmngr/ks-engine-hkp.c

index b9eca0e..a08043f 100644 (file)
@@ -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++;
     }