mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
curl_multi_cleanup: clear connection pointer for easy handles
CVE-2016-5421 Bug: https://curl.haxx.se/docs/adv_20160803C.html Reported-by: Marcelo Echeverria and Fernando Muñoz
This commit is contained in:
parent
9cb1059f92
commit
75dc096e01
@ -2157,6 +2157,8 @@ static void close_all_connections(struct Curl_multi *multi)
|
|||||||
conn->data = multi->closure_handle;
|
conn->data = multi->closure_handle;
|
||||||
|
|
||||||
sigpipe_ignore(conn->data, &pipe_st);
|
sigpipe_ignore(conn->data, &pipe_st);
|
||||||
|
conn->data->easy_conn = NULL; /* clear the easy handle's connection
|
||||||
|
pointer */
|
||||||
/* This will remove the connection from the cache */
|
/* This will remove the connection from the cache */
|
||||||
(void)Curl_disconnect(conn, FALSE);
|
(void)Curl_disconnect(conn, FALSE);
|
||||||
sigpipe_restore(&pipe_st);
|
sigpipe_restore(&pipe_st);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user