[PATCH] resolver: Domain name was not set

Jukka Rissanen jukka.rissanen at linux.intel.com
Thu Feb 2 07:38:22 PST 2012


When service sets the domain name, the server is NULL.
We must allow this as otherwise dnsproxy will not be able
to append domain name into DNS queries.

Fixes BMC#24712
---
 src/resolver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/resolver.c b/src/resolver.c
index f567414..53ccf90 100644
--- a/src/resolver.c
+++ b/src/resolver.c
@@ -316,7 +316,7 @@ int connman_resolver_append(const char *interface, const char *domain,
 
 	DBG("interface %s domain %s server %s", interface, domain, server);
 
-	if (server == NULL)
+	if (server == NULL && domain == NULL)
 		return -EINVAL;
 
 	for (list = entry_list; list; list = list->next) {
-- 
1.7.1




More information about the connman mailing list