aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/microhttpd/test_postprocessor.c2
-rw-r--r--src/microhttpd/test_upgrade_common.c5
-rw-r--r--src/testcurl/https/test_https_session_info.c5
-rw-r--r--src/testcurl/test_parse_cookies.c1
4 files changed, 6 insertions, 7 deletions
diff --git a/src/microhttpd/test_postprocessor.c b/src/microhttpd/test_postprocessor.c
index e3a4d4c4..029600a2 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -169,9 +169,9 @@ test_multipart_garbage ()
169 xdata[1] = 'x'; 169 xdata[1] = 'x';
170 xdata[2] = '\r'; 170 xdata[2] = '\r';
171 memcpy (&xdata[3], FORM_DATA, size); 171 memcpy (&xdata[3], FORM_DATA, size);
172 size += 3;
173 172
174 size = strlen (FORM_DATA); 173 size = strlen (FORM_DATA);
174 size += 3;
175 for (splitpoint = 1; splitpoint < size; splitpoint++) 175 for (splitpoint = 1; splitpoint < size; splitpoint++)
176 { 176 {
177 want_off = FORM_START; 177 want_off = FORM_START;
diff --git a/src/microhttpd/test_upgrade_common.c b/src/microhttpd/test_upgrade_common.c
index f97e5e7c..ee3f699d 100644
--- a/src/microhttpd/test_upgrade_common.c
+++ b/src/microhttpd/test_upgrade_common.c
@@ -205,10 +205,7 @@ recv_hdr (MHD_socket sock)
205 if (-1 == ret) 205 if (-1 == ret)
206 { 206 {
207 if (EAGAIN == errno) 207 if (EAGAIN == errno)
208 { 208 continue;
209 ret = 0;
210 continue;
211 }
212 abort (); 209 abort ();
213 } 210 }
214 if (0 == ret) 211 if (0 == ret)
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c
index a71d0e0b..11fa88d5 100644
--- a/src/testcurl/https/test_https_session_info.c
+++ b/src/testcurl/https/test_https_session_info.c
@@ -116,7 +116,10 @@ test_query_session ()
116 MHD_OPTION_END); 116 MHD_OPTION_END);
117 117
118 if (d == NULL) 118 if (d == NULL)
119 return 2; 119 {
120 free (cbc.buf);
121 return 2;
122 }
120 123
121 const char *aes256_sha = "AES256-SHA"; 124 const char *aes256_sha = "AES256-SHA";
122 if (curl_uses_nss_ssl() == 0) 125 if (curl_uses_nss_ssl() == 0)
diff --git a/src/testcurl/test_parse_cookies.c b/src/testcurl/test_parse_cookies.c
index aefaafdf..e953cde0 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -81,7 +81,6 @@ ahc_echo (void *cls,
81 return MHD_YES; 81 return MHD_YES;
82 } 82 }
83 *unused = NULL; 83 *unused = NULL;
84 ret = 0;
85 84
86 hdr = MHD_lookup_connection_value (connection, MHD_COOKIE_KIND, "name1"); 85 hdr = MHD_lookup_connection_value (connection, MHD_COOKIE_KIND, "name1");
87 if ((hdr == NULL) || (0 != strcmp (hdr, "var1"))) 86 if ((hdr == NULL) || (0 != strcmp (hdr, "var1")))