cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: bug in schannel connection shutdown?

From: Marc Hoersken <info_at_marc-hoersken.de>
Date: Sun, 9 Sep 2012 10:38:36 +0200

Hello everyone,

2012/8/31 Daniel Stenberg <daniel_at_haxx.se>
>
> On Thu, 9 Aug 2012, Salisbury, Mark wrote:
>
>>> If I then call curl_multi_cleanup() (when shutting down the entire
>>> program), I get accesses to free()d memory in schannel connection cleanup. I
>>> don't get such issues on linux with gnutls. The attached file reproduces the
>>> issue.
>>
>>
>> I've reproduced the issue you reported and I am taking a look at it now.
>
>
> Any news on this? Perhaps someone else on Windows can help Mark here?

I took a look at this issue, but was unable to reproduce it myself.
Even with a testcase provided by Mark, I still was not running into
invalid memory access errors.

Anyway, I created a patch that should avoid such issues by reference
counting the credential handle and only allowing it to be freed if
it's not needed anymore.

Please take a look at the attached patch and tell me if it fixes the
problem for you. Thanks.

Best regards,
Marc

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-09-09