Subject: Re: get_iphlpapi_dns_info does not get Name Server

Re: get_iphlpapi_dns_info does not get Name Server

From: Alfredo Tupone <alfredo_at_tupone.it>
Date: 2005-08-18

Il giorno gio, 18/08/2005 alle 11.58 +0200, Daniel Stenberg ha scritto:

> This code is different in the current CVS version, see:
>
> http://cool.haxx.se/cvs.cgi/curl/ares/ares_init.c?rev=HEAD&content-type=text/vnd.viewcvs-markup
>
> To me it looks like your concern already has been addressed. Don't you agree?
>
I could be possibly wrong but

  if ((*GetNetworkParams) (fi, &size) != ERROR_BUFFER_OVERFLOW)
     goto quit;

will quit when size is big enough.

Now size is

DWORD size = sizeof (*fi);

that is a 4.

GetNetworkParams will in some windows version return OK (or whatever value is) that is not ERROR_BUFFER_OVERFLOW
and get_iphlpapi_dns_info just quit

_______________________________________________
http://cool.haxx.se/mailman/listinfo/c-ares
Received on Thu Aug 18 12:11:04 2005