From: Mohamed Abbas Date: Thu, 8 Oct 2009 18:49:13 +0000 (-0700) Subject: Fix issue with adding nameserver that doesn't exist X-Git-Tag: 0.47~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27c1183a14b6eef1738069af3d98e59ba2cdd519;p=platform%2Fupstream%2Fconnman.git Fix issue with adding nameserver that doesn't exist --- diff --git a/src/ipv4.c b/src/ipv4.c index b98d302..01a430a 100644 --- a/src/ipv4.c +++ b/src/ipv4.c @@ -97,8 +97,8 @@ static int set_ipv4(struct connman_element *element, if (nameserver == NULL) connman_error("No nameserver for %s defined", ifr.ifr_name); - - connman_resolver_append(ifr.ifr_name, NULL, nameserver); + else + connman_resolver_append(ifr.ifr_name, NULL, nameserver); return 0; }