diff --git a/ndhc/ifchd.c b/ndhc/ifchd.c index f219473..557cddf 100644 --- a/ndhc/ifchd.c +++ b/ndhc/ifchd.c @@ -92,7 +92,7 @@ static void write_resolve_conf(void) off_t off; char buf[MAX_BUF]; - if (resolv_conf_fd == -1) + if (resolv_conf_fd < 0) return; if (strlen(cl.namesvrs) == 0) return;