mirror of
https://github.com/curl/curl.git
synced 2026-07-23 10:07:16 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -2157,6 +2157,8 @@ static void close_all_connections(struct Curl_multi *multi)
|
|||
conn->data = multi->closure_handle;
|
||||
|
||||
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 */
|
||||
(void)Curl_disconnect(conn, FALSE);
|
||||
sigpipe_restore(&pipe_st);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue