diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-05-14 13:33:46 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-15 15:48:11 +0300 |
commit | a7a79a2e795146c750dcb9e3c29c4bf92f0832a6 (patch) | |
tree | 75fb897c50b8b1790094bc01dd0080a3696c9d9d /src/resolver.c | |
parent | cd4971984e850f75c3c76fa17633fe76fb6bb806 (diff) | |
download | connman-a7a79a2e795146c750dcb9e3c29c4bf92f0832a6.tar.gz connman-a7a79a2e795146c750dcb9e3c29c4bf92f0832a6.tar.bz2 connman-a7a79a2e795146c750dcb9e3c29c4bf92f0832a6.zip |
resolver: Do not try to update service if server is not set
Diffstat (limited to 'src/resolver.c')
-rw-r--r-- | src/resolver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolver.c b/src/resolver.c index f27f22ca..58af2f78 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) |