aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1553
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-10-06 17:20:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-10-07 00:20:31 +0200
commit5b54df06d2cec422d5f237e0fa0212be0303edce (patch)
treed37eab3cb0209848942478c593902af21c689090 /tests/data/test1553
parent0af5ac27c3d818f0a962de1e1029c0af7d497080 (diff)
pingpong: return error when trying to send without connection
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
Diffstat (limited to 'tests/data/test1553')
-rw-r--r--tests/data/test155352
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/data/test1553 b/tests/data/test1553
new file mode 100644
index 000000000..c2fb9cc32
--- /dev/null
+++ b/tests/data/test1553
@@ -0,0 +1,52 @@
+<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>