Subject: Re: Leaked handles on Windows

Re: Leaked handles on Windows

From: Vlad Dinulescu <vlad.dinulescu_at_avira.com>
Date: Wed, 13 May 2009 15:33:31 +0300

    Ok, I have downloaded the hotfix. The setup says that the hotfix is
not meant for my version of Windows and quits. So, just for the sake of
it, I've hacked into the hotfix and extracted the iphlpapi.dll, and I've
modified c-ares to LoadLibrary("C:\\new\\iphlapi.dll"). It seems to
work. No more leaked handles and the nameserver information returned by
GetNetworkParams is right.
    But I wouldn't go as far as installing the new dll to
C:\Windows\System32. That seems risky. However, a new hacky alternative
has sprung: we could distribute the 'fixed' iphlpapi.dll into c-ares and
LoadLibrary() it. But I am sure that the Microsoft EULA forbids that.

Vlad Dinulescu

Vlad Dinulescu wrote:
> The hotfix was for Windows 2003 Server. I'll try to install it on one of
> the Windows XP machines and let you know how that went. But even if the
> hotfix would work, the problem still exists with all the other Windows
> machines that naturally do not have the hotfix.
>
>
> ps I have not tried contacting Microsoft.
>
> Daniel Stenberg wrote:
>> On Wed, 13 May 2009, Vlad Dinulescu wrote:
>>
>>> Thank you for the quick answer! Small world :) Caching the results of
>>> GetNetworkParams would be an alternative, but the library user should
>>> choose for how long, especially if she develops a server product.
>> Sorry, but in the thread referred in a previous mail, there was a link
>> to the Microsoft issue for this problem
>> (http://support.microsoft.com/default.aspx?scid=kb;en-us;836769) and in
>> that issue, there is a mention of a "hotfix" for it.
>>
>> I just want to make sure: does this hotfix then not work for your
>> Windows version(s) ?
>>
>> Did anyone of you try to contact Microsoft about this issue?
>>

-- 
Best regards,
Vlad DINULESCU
AVIRA - Software developer
vlad.dinulescu_at_avira.com
http://www.avira.com
-----------------------------------------------------------
DISCLAIMER: This message is confidential. It may also be privileged or
otherwise protected by work product immunity or other legal rules. If you
have received it by mistake please let us know by reply and then delete it
from your system; you should not copy the message or disclose its contents
to anyone.
Received on 2009-05-13