From ee263de7a378e701f15e58879f36fdcfe8742006 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Dec 2019 11:53:54 +0100 Subject: conncache: fix multi-thread use of shared connection cache It could accidentally let the connection get used by more than one thread, leading to double-free and more. Reported-by: Christopher Reid Fixes #4544 Closes #4557 --- tests/data/test1554 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/data/test1554') diff --git a/tests/data/test1554 b/tests/data/test1554 index be48e02eb..06f189724 100644 --- a/tests/data/test1554 +++ b/tests/data/test1554 @@ -38,6 +38,8 @@ run 1: foobar and so on fun! <- Mutex unlock -> Mutex lock <- Mutex unlock +-> Mutex lock +<- Mutex unlock run 1: foobar and so on fun! -> Mutex lock <- Mutex unlock @@ -47,6 +49,8 @@ run 1: foobar and so on fun! <- Mutex unlock -> Mutex lock <- Mutex unlock +-> Mutex lock +<- Mutex unlock run 1: foobar and so on fun! -> Mutex lock <- Mutex unlock @@ -54,6 +58,8 @@ run 1: foobar and so on fun! <- Mutex unlock -> Mutex lock <- Mutex unlock +-> Mutex lock +<- Mutex unlock -- cgit v1.2.3