resolver: Allow update to domain if server is not set
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Mon, 14 May 2012 10:33:45 +0000 (13:33 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 15 May 2012 12:47:44 +0000 (15:47 +0300)
src/resolver.c

index d273e3a..f27f22c 100644 (file)
@@ -354,7 +354,7 @@ int connman_resolver_append_lifetime(const char *interface, const char *domain,
        DBG("interface %s domain %s server %s lifetime %d",
                                interface, domain, server, lifetime);
 
-       if (server == NULL)
+       if (server == NULL && domain == NULL)
                return -EINVAL;
 
        for (list = entry_list; list; list = list->next) {