From db15affc05be7ba8d2089e655e653b59458d9c6f Mon Sep 17 00:00:00 2001 From: Mantas Mikulėnas Date: Fri, 27 Nov 2015 08:36:37 +0200 Subject: resolved: fix typo in in_addr_is_localhost() --- src/basic/in-addr-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf