From 7f8a4d27747012b3d3c5ec85b2cbff4892dc9fa4 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 13 Apr 2009 15:47:40 +0200 Subject: Add extra warning if no nameserver is defined --- src/ipv4.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ipv4.c') diff --git a/src/ipv4.c b/src/ipv4.c index 4518d97c..b670cfdb 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; -- cgit v1.2.3