From 27c1183a14b6eef1738069af3d98e59ba2cdd519 Mon Sep 17 00:00:00 2001 From: Mohamed Abbas Date: Thu, 8 Oct 2009 11:49:13 -0700 Subject: [PATCH] Fix issue with adding nameserver that doesn't exist --- src/ipv4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.7.4