cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2926284 ] [patch] Reference count leak in OpenSSL session re-use

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 05 Jan 2010 15:06:28 +0000

Bugs item #2926284, was opened at 2010-01-05 16:06
Message generated for change (Tracker Item Submitted) made by koresh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2926284&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: (koresh)
Assigned to: Daniel Stenberg (bagder)
Summary: [patch] Reference count leak in OpenSSL session re-use

Initial Comment:
ossl_connect_step3() increments an SSL session handle reference counter on each call. When sessions are re-used this reference counter may be incremented many times, but it will be decremented only once when done (by Curl_ossl_session_free()); and the internal OpenSSL data will not be freed if this reference count remains positive. When a session is re-used the reference counter should be corrected by explicitly calling SSL_SESSION_free() after each consecutive SSL_get1_session() to avoid introducing a memory leak.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2926284&group_id=976
Received on 2010-01-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET