load-fragment: don't print error about incorrect syntax when IPv6 is disabled (#5791)

This commit is contained in:
Michal Sekletar
2017-04-25 09:31:52 +02:00
committed by Lennart Poettering
parent 23656d2b95
commit f847b8b7df
+3 -1
View File
@@ -392,7 +392,9 @@ int config_parse_socket_listen(const char *unit,
r = socket_address_parse_and_warn(&p->address, k);
if (r < 0) {
log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse address value, ignoring: %s", rvalue);
if (r != -EAFNOSUPPORT)
log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse address value, ignoring: %s", rvalue);
return 0;
}