From: Marcel Holtmann Date: Mon, 13 Apr 2009 13:47:40 +0000 (+0200) Subject: Add extra warning if no nameserver is defined X-Git-Tag: 0.16~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f8a4d27747012b3d3c5ec85b2cbff4892dc9fa4;p=platform%2Fupstream%2Fconnman.git Add extra warning if no nameserver is defined --- diff --git a/src/ipv4.c b/src/ipv4.c index 4518d97..b670cfd 100644 --- a/src/ipv4.c +++ b/src/ipv4.c @@ -92,6 +92,9 @@ static int set_ipv4(struct connman_element *element, close(sk); + if (nameserver == NULL) + connman_error("No nameserver for %s defined", ifr.ifr_name); + connman_resolver_append(ifr.ifr_name, NULL, nameserver); return 0;