3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

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

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