identifying a double-free problem in the SSL-dealing layer, telling GnuTLS to
free NULL credentials on closedown after a failure and a bad #ifdef for NSS
when closing down SSL.
This commit is contained in:
Daniel Stenberg 2007-04-21 21:32:31 +00:00
parent 92039629c7
commit cea9695bcf
3 changed files with 13 additions and 2 deletions

View File

@ -6,6 +6,12 @@
Changelog Changelog
Daniel S (21 April 2007)
- Daniel Black filed bug #1704675
(http://curl.haxx.se/bug/view.cgi?id=1704675) identifying a double-free
problem in the SSL-dealing layer, telling GnuTLS to free NULL credentials on
closedown after a failure and a bad #ifdef for NSS when closing down SSL.
Yang Tse (20 April 2007) Yang Tse (20 April 2007)
- Save one call to curlx_tvnow(), which calls gettimeofday(), in each of - Save one call to curlx_tvnow(), which calls gettimeofday(), in each of
Curl_socket_ready(), Curl_poll() and Curl_select() when these are called Curl_socket_ready(), Curl_poll() and Curl_select() when these are called

View File

@ -23,6 +23,9 @@ This release includes the following bugfixes:
o test suite SSL certificate works better with newer stunnel o test suite SSL certificate works better with newer stunnel
o internal progress meter update frequency back to once per second o internal progress meter update frequency back to once per second
o avoid some unnecessary calls to function gettimeofday o avoid some unnecessary calls to function gettimeofday
o a double-free in the SSL-layer
o GnuTLS free of NULL credentials
o NSS-fix for closing down SSL
This release includes the following known bugs: This release includes the following known bugs:
@ -42,6 +45,7 @@ New curl mirrors:
This release would not have looked like this without help, code, reports and This release would not have looked like this without help, code, reports and
advice from friends like these: advice from friends like these:
Song Ma, Dan Fandrich, Yang Tse, Jay Austin, Robert Iakobashvil, James Housley Song Ma, Dan Fandrich, Yang Tse, Jay Austin, Robert Iakobashvil,
James Housley, Daniel Black
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@ -502,7 +502,8 @@ static void close_one(struct connectdata *conn,
gnutls_bye(conn->ssl[index].session, GNUTLS_SHUT_RDWR); gnutls_bye(conn->ssl[index].session, GNUTLS_SHUT_RDWR);
gnutls_deinit(conn->ssl[index].session); gnutls_deinit(conn->ssl[index].session);
} }
gnutls_certificate_free_credentials(conn->ssl[index].cred); if(conn->ssl[index].cred)
gnutls_certificate_free_credentials(conn->ssl[index].cred);
} }
void Curl_gtls_close(struct connectdata *conn) void Curl_gtls_close(struct connectdata *conn)