resolve: propagate error in link_load_user()

Most error path in link_load_user() are ENOMEM. Hence, it is critical.
This commit is contained in:
Yu Watanabe 2020-07-02 10:25:19 +09:00
parent eced0d2a46
commit cbe194b39e
1 changed files with 3 additions and 1 deletions

View File

@ -652,7 +652,9 @@ int link_update(Link *l) {
assert(l);
link_read_settings(l);
link_load_user(l);
r = link_load_user(l);
if (r < 0)
return r;
if (l->llmnr_support != RESOLVE_SUPPORT_NO) {
r = manager_llmnr_start(l->manager);