projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0d8c80
)
resolved: fix typo in in_addr_is_localhost()
author
Mantas Mikulėnas
<grawity@gmail.com>
Fri, 27 Nov 2015 06:36:37 +0000
(08:36 +0200)
committer
Mantas Mikulėnas
<grawity@gmail.com>
Fri, 27 Nov 2015 06:36:37 +0000
(08:36 +0200)
src/basic/in-addr-util.c
patch
|
blob
|
history
diff --git
a/src/basic/in-addr-util.c
b/src/basic/in-addr-util.c
index 1f61b68efdb3333776fed35ab411abe2d6216906..b75c39aac753c22b977f6c49b7d575286915dd7f 100644
(file)
--- 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_INET
6
)
return IN6_IS_ADDR_LOOPBACK(&u->in6);
return -EAFNOSUPPORT;