mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
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:
parent
2b43a05158
commit
23ea641ba2
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user