Subject: Little WIN32 BUG in ares_init()

Little WIN32 BUG in ares_init()

From: Guilherme Balena Versiani <guibv_at_comunip.com.br>
Date: Fri, 03 Nov 2006 12:15:53 -0300

Just a little BUG I found in WIN32:
  - When there are no network interface at all, the function ares_init()
returns -1, an invalid ares error value.

I attached the tiny patch as a suggestion to solve it.

Regards,

Guilherme Balena Versiani.

--- ares_init.c.old 2006-11-03 12:10:23.389754900 -0300
+++ ares_init.c 2006-11-03 09:07:27.000000000 -0300
@@ -456,6 +456,7 @@
       goto okay;
   }
 
+ status = ARES_EFILE;
   if (IS_NT())
   {
     if (RegOpenKeyEx(

Received on 2006-11-03