aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_init.c')
-rw-r--r--ares/ares_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 552f51f48..bfe6b904c 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -555,6 +555,10 @@ DhcpNameServer
if (status == ARES_SUCCESS)
status = ARES_EOF;
+ else
+ /* Catch the case when all the above checks fail (which happens when there
+ is no network card or the cable is unplugged) */
+ status = ARES_EFILE;
#elif defined(__riscos__)