Ravi Pratap fixed a flaw in the init_by_resolv_conf() function for windows

that could cause it to return a bad return code.
This commit is contained in:
Daniel Stenberg 2007-05-25 21:11:28 +00:00
parent c25da51913
commit fcc3e2ca34
2 changed files with 8 additions and 0 deletions

View file

@ -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__)