35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 31c621ee6dcc793cf3b11e4c062f396d3bdfb503 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Stenberg <daniel@haxx.se>
|
|
Date: Sun, 31 Jul 2016 01:09:04 +0200
|
|
Subject: [PATCH] curl_multi_cleanup: clear connection pointer for easy handles
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
CVE-2016-5421
|
|
Bug: https://curl.haxx.se/docs/adv_20160803C.html
|
|
Reported-by: Marcelo Echeverria and Fernando Muñoz
|
|
|
|
Upstream-commit: 75dc096e01ef1e21b6c57690d99371dedb2c0b80
|
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
---
|
|
lib/multi.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/lib/multi.c b/lib/multi.c
|
|
index b63f8bf..3ff5e86 100644
|
|
--- a/lib/multi.c
|
|
+++ b/lib/multi.c
|
|
@@ -1841,6 +1841,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);
|
|
--
|
|
2.5.5
|
|
|