--- src/resolver.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/resolver.c b/src/resolver.c index f27f22c..58af2f7 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -283,7 +283,7 @@ static int append_resolver(const char *interface, const char *domain, * that are automagically added via netlink (lifetime > 0) */ index = connman_inet_ifindex(interface); - if (index >= 0) { + if (server != NULL && index >= 0) { struct connman_service *service; service = __connman_service_lookup_from_index(index); if (service != NULL) -- 1.7.5.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman