diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-04-13 15:47:40 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-04-13 15:47:40 +0200 |
commit | 7f8a4d27747012b3d3c5ec85b2cbff4892dc9fa4 (patch) | |
tree | c5bc05f628fdd7b7d37fd27dfc8f610fe92458dd /src/ipv4.c | |
parent | b5d62db6c6af99a6dba2e0ec7738015a0e8439e1 (diff) | |
download | connman-7f8a4d27747012b3d3c5ec85b2cbff4892dc9fa4.tar.gz connman-7f8a4d27747012b3d3c5ec85b2cbff4892dc9fa4.tar.bz2 connman-7f8a4d27747012b3d3c5ec85b2cbff4892dc9fa4.zip |
Add extra warning if no nameserver is defined
Diffstat (limited to 'src/ipv4.c')
-rw-r--r-- | src/ipv4.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |