diff options
author | Justus Winter <[email protected]> | 2015-11-23 12:59:01 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2015-11-23 13:00:47 +0000 |
commit | 23ea641ba2a063cc99c82869061703d48bc674b2 (patch) | |
tree | 967ba27acb98be0a58b4efe683f059f009bf7ecf | |
parent | dirmngr: Refactor 'map_host'. (diff) | |
download | gnupg-23ea641ba2a063cc99c82869061703d48bc674b2.tar.gz gnupg-23ea641ba2a063cc99c82869061703d48bc674b2.zip |
dirmngr: Fix pool detection.
* dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | dirmngr/ks-engine-hkp.c | 4 |
1 files 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++; } |