summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-02-08 19:39:24 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-02-12 11:11:22 +0100
commit27cf6c28bc02e7a54487d44c212a98b165a70c34 (patch)
treeb1c588d0e27f7c06c4ac0daf8b0d9d397bc72f2d /src
parent4e9506ea508108c00a20f35756eb36b93ec2232d (diff)
downloadsssd-27cf6c28bc02e7a54487d44c212a98b165a70c34.tar.gz
sssd-27cf6c28bc02e7a54487d44c212a98b165a70c34.tar.bz2
sssd-27cf6c28bc02e7a54487d44c212a98b165a70c34.zip
Filter out multicast addresses from IPA DNS updates
https://fedorahosted.org/sssd/ticket/1804
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_dyndns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_dyndns.c b/src/providers/ipa/ipa_dyndns.c
index 9d7a5b6c..972f19ad 100644
--- a/src/providers/ipa/ipa_dyndns.c
+++ b/src/providers/ipa/ipa_dyndns.c
@@ -212,7 +212,7 @@ static bool ok_for_dns(struct sockaddr *sa)
snprintf(straddr, INET6_ADDRSTRLEN, "unknown");
}
- if (IN_MULTICAST(addr->s_addr)) {
+ if (IN_MULTICAST(ntohl(addr->s_addr))) {
DEBUG(SSSDBG_FUNC_DATA, ("Multicast IPv4 address %s\n", straddr));
return false;
} else if (inet_netof(*addr) == IN_LOOPBACKNET) {