dirmngr: Fix pool detection.

* dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2015-11-23 13:59:01 +01:00
parent 2b43a05158
commit 23ea641ba2
1 changed files with 2 additions and 2 deletions

View 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++;
}