From 2c2eb881de75f722f4d3fba6da3c063f4e57fa0e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 18 Dec 2009 21:21:08 -0800 Subject: [PATCH] Ignore DNS servers without an interface for now --- src/resolver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resolver.c b/src/resolver.c index dec1357..5fc01a6 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -328,6 +328,9 @@ static int resolvfile_append(const char *interface, const char *domain, DBG("interface %s server %s", interface, server); + if (interface == NULL) + return -ENOENT; + fd = open("/etc/resolv.conf", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if (fd < 0) -- 2.7.4