mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
resolve: make config_parse_dnssd_service_name() accepts an empty string
This commit is contained in:
parent
a37eb63ffa
commit
0c949643b8
@ -251,8 +251,8 @@ int config_parse_dnssd_service_name(
|
||||
assert(s);
|
||||
|
||||
if (isempty(rvalue)) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Service instance name can't be empty. Ignoring.");
|
||||
return -EINVAL;
|
||||
s->name_template = mfree(s->name_template);
|
||||
return 0;
|
||||
}
|
||||
|
||||
r = free_and_strdup(&s->name_template, rvalue);
|
||||
|
Loading…
Reference in New Issue
Block a user