diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-28 13:01:11 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-28 13:04:15 +0000 |
commit | 0d037cfdce7d295052cf4c91eda6d7fda7a692a8 (patch) | |
tree | a89ced7d23694a0f1fec1ea791cf355381989ea3 /tests/libtest | |
parent | 9459ee99ae748ebc21ed71a5f76e43a60f704c37 (diff) |
test1520: Fixed initial teething problems
* Missing initialisation of upload status caused a seg fault
* Missing data termination caused corrupt data to be uploaded
* Data verification should be performed in <upload> element
* Added missing recipient list cleanup
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib1520.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/libtest/lib1520.c b/tests/libtest/lib1520.c index bef1e1364..c6d2e820a 100644 --- a/tests/libtest/lib1520.c +++ b/tests/libtest/lib1520.c @@ -30,16 +30,17 @@ #define FROM "<sender@example.com>" static const char *payload_text[] = { -"From: different\r\n", -"To: another\r\n", -"\r\n", -"\r\n", -".\r\n", -".\r\n", -"\r\n", -".\r\n", -"\r\n", -"body" + "From: different\r\n", + "To: another\r\n", + "\r\n", + "\r\n", + ".\r\n", + ".\r\n", + "\r\n", + ".\r\n", + "\r\n", + "body", + NULL }; struct upload_status { @@ -103,6 +104,7 @@ int test(char *URL) test_cleanup: + curl_slist_free_all(rcpt_list); curl_easy_cleanup(curl); curl_global_cleanup(); |