diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2015-11-27 10:35:34 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2015-11-27 10:35:34 +0100 |
commit | ff7d5a5c7c9faa553a24861db4bf531560df9c0d (patch) | |
tree | f8f9412745d9d9706e44bed9973b1b1625aa8e60 | |
parent | 827661914afae10c2a751ca680296a9a849e4f4a (diff) | |
parent | db15affc05be7ba8d2089e655e653b59458d9c6f (diff) |
Merge pull request #2044 from grawity/patch-1
resolved: fix typo in in_addr_is_localhost()
-rw-r--r-- | src/basic/in-addr-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/in-addr-util.c b/src/basic/in-addr-util.c index 1f61b68efd..b75c39aac7 100644 --- a/src/basic/in-addr-util.c +++ b/src/basic/in-addr-util.c @@ -59,7 +59,7 @@ int in_addr_is_localhost(int family, const union in_addr_union *u) { /* All of 127.x.x.x is localhost. */ return (be32toh(u->in.s_addr) & UINT32_C(0xFF000000)) == UINT32_C(127) << 24; - if (family == AF_INET) + if (family == AF_INET6) return IN6_IS_ADDR_LOOPBACK(&u->in6); return -EAFNOSUPPORT; |