[Pkg-gnupg-commit] [gnupg2] 161/241: dirmngr: Fix pool detection.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:32:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 23ea641ba2a063cc99c82869061703d48bc674b2
Author: Justus Winter <justus at g10code.com>
Date: Mon Nov 23 13:59:01 2015 +0100
dirmngr: Fix pool detection.
* dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.
Signed-off-by: Justus Winter <justus at g10code.com>
---
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 b9eca0e..a08043f 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++;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list