mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 19:45:04 -05:00
5b54df06d2
When imap_done() got called before a connection is setup, it would try to "finish up" and dereffed a NULL pointer. Test case 1553 managed to reproduce. I had to actually use a host name to try to resolve to slow it down, as using the normal local server IP will make libcurl get a connection in the first curl_multi_perform() loop and then the bug doesn't trigger. Fixes #1953 Assisted-by: Max Dymond
53 lines
598 B
Plaintext
53 lines
598 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
IMAP
|
|
Clear Text
|
|
FETCH
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
From: me@somewhere
|
|
To: fake@nowhere
|
|
|
|
body
|
|
|
|
--
|
|
yours sincerely
|
|
</data>
|
|
<datacheck>
|
|
</datacheck>
|
|
<servercmd>
|
|
</servercmd>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
imap
|
|
</server>
|
|
<name>
|
|
IMAP cleanup before a connection was created
|
|
</name>
|
|
# tool is what to use instead of 'curl'
|
|
<tool>
|
|
lib1553
|
|
</tool>
|
|
<command>
|
|
imap://non-existing-host.haxx.se:%IMAPPORT/1553
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|