diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-04-22 03:19:34 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-04-22 03:19:34 +0000 |
commit | 6cc0b1233e8bc9a2027b9ea3b48e52e9aefd208d (patch) | |
tree | 7a52be77f91fe315d441af380daff0dac0a5f858 | |
parent | 4f3b20e6fd8068e11b9a319f4f1fc6329221cb13 (diff) | |
download | krb5-6cc0b1233e8bc9a2027b9ea3b48e52e9aefd208d.zip krb5-6cc0b1233e8bc9a2027b9ea3b48e52e9aefd208d.tar.gz krb5-6cc0b1233e8bc9a2027b9ea3b48e52e9aefd208d.tar.bz2 |
In kpasswd_sendto_msg_callback(), properly compare against the
wildcard IPv6 address instead of comparing an array address to 0.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23921 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/os/changepw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index 7cab0d6..25840b6 100644 --- a/src/lib/krb5/os/changepw.c +++ b/src/lib/krb5/os/changepw.c @@ -140,7 +140,8 @@ kpasswd_sendto_msg_callback(struct conn_state *conn, local_kaddr.length = sizeof(ss2sin(&local_addr)->sin_addr); local_kaddr.contents = (krb5_octet *) &ss2sin(&local_addr)->sin_addr; } else if (local_addr.ss_family == AF_INET6 && - ss2sin6(&local_addr)->sin6_addr.s6_addr != 0) { + memcmp(ss2sin6(&local_addr)->sin6_addr.s6_addr, + in6addr_any.s6_addr, sizeof(in6addr_any.s6_addr)) != 0) { local_kaddr.addrtype = ADDRTYPE_INET6; local_kaddr.length = sizeof(ss2sin6(&local_addr)->sin6_addr); local_kaddr.contents = (krb5_octet *) &ss2sin6(&local_addr)->sin6_addr; |