summaryrefslogtreecommitdiff
path: root/src/core
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/core
parent0b507b17a760b21e33fc52ff377db6aa5086c680 (diff)
man: document behaviour of ListenStream= with only a port number in regards to IPv4/IPv6
Diffstat (limited to 'src/core')
-rw-r--r--src/core/load-fragment.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 93f051af47..2504d730dc 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -326,10 +326,12 @@ int config_parse_socket_bind(
s = SOCKET(data);
- if ((b = socket_address_bind_ipv6_only_from_string(rvalue)) < 0) {
+ b = socket_address_bind_ipv6_only_from_string(rvalue);
+ if (b < 0) {
int r;
- if ((r = parse_boolean(rvalue)) < 0) {
+ r = parse_boolean(rvalue);
+ if (r < 0) {
log_error("[%s:%u] Failed to parse bind IPv6 only value, ignoring: %s", filename, line, rvalue);
return 0;
}