mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
- Zmey Petroff found a crash when libcurl accessed a NULL pointer, which
happened if you set the connection cache size to 1 and for example failed to login to an FTP site. Bug report #1896698 (http://curl.haxx.se/bug/view.cgi?id=1896698)
This commit is contained in:
parent
5e9c564883
commit
e9bb7b7712
6
CHANGES
6
CHANGES
@ -6,6 +6,12 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel S (21 Feb 2008)
|
||||||
|
- Zmey Petroff found a crash when libcurl accessed a NULL pointer, which
|
||||||
|
happened if you set the connection cache size to 1 and for example failed to
|
||||||
|
login to an FTP site. Bug report #1896698
|
||||||
|
(http://curl.haxx.se/bug/view.cgi?id=1896698)
|
||||||
|
|
||||||
Daniel S (20 Feb 2008)
|
Daniel S (20 Feb 2008)
|
||||||
- Fixed test case 405 to not fail when libcurl is built with GnuTLS
|
- Fixed test case 405 to not fail when libcurl is built with GnuTLS
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ This release includes the following bugfixes:
|
|||||||
a transfer going on, the connection is now closed by force
|
a transfer going on, the connection is now closed by force
|
||||||
o bad re-use of SSL connections in non-complete state
|
o bad re-use of SSL connections in non-complete state
|
||||||
o test case 405 failures with GnuTLS builds
|
o test case 405 failures with GnuTLS builds
|
||||||
|
o crash when connection cache size is 1 and Curl_do() failed
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@ -47,6 +48,6 @@ advice from friends like these:
|
|||||||
|
|
||||||
Michal Marek, Dmitry Kurochkin, Niklas Angebrand, Günter Knauf, Yang Tse,
|
Michal Marek, Dmitry Kurochkin, Niklas Angebrand, Günter Knauf, Yang Tse,
|
||||||
Dan Fandrich, Mike Hommey, Pooyan McSporran, Jerome Muffat-Meridol,
|
Dan Fandrich, Mike Hommey, Pooyan McSporran, Jerome Muffat-Meridol,
|
||||||
Kaspar Brand, Gautam Kachroo
|
Kaspar Brand, Gautam Kachroo, Zmey Petroff
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
@ -2389,8 +2389,12 @@ CURLcode Curl_perform(struct SessionHandle *data)
|
|||||||
if(CURLE_OK == res)
|
if(CURLE_OK == res)
|
||||||
res = res2;
|
res = res2;
|
||||||
}
|
}
|
||||||
else
|
else if(conn)
|
||||||
/* Curl_do() failed, clean up left-overs in the done-call */
|
/* Curl_do() failed, clean up left-overs in the done-call, but note
|
||||||
|
that at some cases the conn pointer is NULL when Curl_do() failed
|
||||||
|
and the connection cache is very small so only call Curl_done() if
|
||||||
|
conn is still "alive".
|
||||||
|
*/
|
||||||
res2 = Curl_done(&conn, res, FALSE);
|
res2 = Curl_done(&conn, res, FALSE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user