mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 14:35:03 -05:00
ac9a179fe9
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
55 lines
649 B
Plaintext
55 lines
649 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>
|
|
|
|
# it is important this uses a host name that resolves successfully
|
|
<command>
|
|
imap://localhost:%IMAPPORT/1590
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|