diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-12 18:45:54 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-24 15:10:01 +0200 |
commit | a9b2c8fb47fc334c7ba9b229cde18d168059c096 (patch) | |
tree | fd6c5c48e9d13f11a8ce96c2e259c6aecc9f9a2b /src/providers/ldap/sdap_async_sudo_hostinfo.c | |
parent | f1dba8ec85896530431c3f9069394e83d9c1b0cc (diff) | |
download | sssd-a9b2c8fb47fc334c7ba9b229cde18d168059c096.tar.gz sssd-a9b2c8fb47fc334c7ba9b229cde18d168059c096.tar.xz sssd-a9b2c8fb47fc334c7ba9b229cde18d168059c096.zip |
Convert IN_MULTICAST parameter to host order
https://fedorahosted.org/sssd/ticket/2087
IN_MULTICAST accepts address in the host order, but network order was
supplied.
Diffstat (limited to 'src/providers/ldap/sdap_async_sudo_hostinfo.c')
-rw-r--r-- | src/providers/ldap/sdap_async_sudo_hostinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_sudo_hostinfo.c b/src/providers/ldap/sdap_async_sudo_hostinfo.c index 4e33babd5..f0c728108 100644 --- a/src/providers/ldap/sdap_async_sudo_hostinfo.c +++ b/src/providers/ldap/sdap_async_sudo_hostinfo.c @@ -239,7 +239,7 @@ static int sdap_sudo_get_ip_addresses(TALLOC_CTX *mem_ctx, } /* ignore multicast */ - if (IN_MULTICAST(ip4_addr->sin_addr.s_addr)) { + if (IN_MULTICAST(ntohl(ip4_addr->sin_addr.s_addr))) { continue; } |