resolve: Fix invalid method name check

The intent was to check for the presence of the add_domain_name
operation, not add_dns operation.

Fixes: 930528e35e ("resolve: Add systemd-resolved domain name installer")
This commit is contained in:
Denis Kenzior 2019-12-17 16:48:21 -06:00
parent 0e49561bb7
commit ab14515715
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ void resolve_add_domain_name(uint32_t ifindex, const char *domain_name)
if (!domain_name)
return;
if (!method.ops || !method.ops->add_dns)
if (!method.ops || !method.ops->add_domain_name)
return;
method.ops->add_domain_name(ifindex, domain_name, method.data);