summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-03 14:18:55 -0400
committerLennart Poettering <lennart@poettering.net>2012-10-03 14:18:55 -0400
commit5198dabcce9da535c4531b53990cfa11bd9f7896 (patch)
treeb428869e21184a7a338244140f342caeddae7d88 /src/shared/socket-util.c
parent0b507b17a760b21e33fc52ff377db6aa5086c680 (diff)
man: document behaviour of ListenStream= with only a port number in regards to IPv4/IPv6
Diffstat (limited to 'src/shared/socket-util.c')
-rw-r--r--src/shared/socket-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c
index 7e65f8a691..4908403d9f 100644
--- a/src/shared/socket-util.c
+++ b/src/shared/socket-util.c
@@ -167,7 +167,8 @@ int socket_address_parse(SocketAddress *a, const char *s) {
} else {
/* Just a port */
- if ((r = safe_atou(s, &u)) < 0)
+ r = safe_atou(s, &u);
+ if (r < 0)
return r;
if (u <= 0 || u > 0xFFFF)