resolve: make config_parse_dnssd_service_name() accepts an empty string

This commit is contained in:
Yu Watanabe 2020-11-18 03:23:32 +09:00
parent a37eb63ffa
commit 0c949643b8
1 changed files with 2 additions and 2 deletions

View File

@ -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);