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

@ -1,5 +1,9 @@
Changelog for the c-ares project
* May 25 2007
- Ravi Pratap fixed a flaw in the init_by_resolv_conf() function for windows
that could cause it to return a bad return code.
* April 16 2007
- Yang Tse: Provide ares_getopt() command-line parser function as a source

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