From ac9a179fe980f1a78438a791671e22671ebb6451 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 14 Jun 2018 16:28:59 +0200 Subject: multi: fix memory leak when stopped during name resolve When the application just started the transfer and then stops it while the name resolve in the background thread hasn't completed, we need to wait for the resolve to complete and then cleanup data accordingly. Enabled test 1553 again and added test 1590 to also check when the host name resolves successfully. Detected by OSS-fuzz. Closes #1968 --- tests/data/test1553 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/data/test1553') diff --git a/tests/data/test1553 b/tests/data/test1553 index c2fb9cc32..5e793b391 100644 --- a/tests/data/test1553 +++ b/tests/data/test1553 @@ -38,7 +38,9 @@ IMAP cleanup before a connection was created lib1553 - + +# this MUST use a host name that doesn't resolve + imap://non-existing-host.haxx.se:%IMAPPORT/1553 -- cgit v1.2.3