ipv4: Add domainame before moving to READY state
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 16 Feb 2011 23:17:03 +0000 (00:17 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 16 Feb 2011 23:17:03 +0000 (00:17 +0100)
src/ipv4.c

index 57efdaf..e77b8ee 100644 (file)
@@ -94,14 +94,15 @@ static int ipv4_probe(struct connman_element *element)
        if (nameserver != NULL)
                __connman_service_nameserver_append(service, nameserver);
 
+       if (domainname != NULL)
+               __connman_service_set_domainname(service, domainname);
+
        connman_timeserver_append(timeserver);
 
        err = __connman_connection_gateway_add(service, ipv4_gw, ipv6_gw, peer);
        if (err < 0)
                return err;
 
-       __connman_service_set_domainname(service, domainname);
-
        return 0;
 }