diff options
Diffstat (limited to 'src/daemon/daemontest_put.c')
-rw-r--r-- | src/daemon/daemontest_put.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/daemon/daemontest_put.c b/src/daemon/daemontest_put.c index 198eb0f8..bd3e0a52 100644 --- a/src/daemon/daemontest_put.c +++ b/src/daemon/daemontest_put.c | |||
@@ -156,19 +156,11 @@ testInternalPut () | |||
156 | return 2; | 156 | return 2; |
157 | } | 157 | } |
158 | curl_easy_cleanup (c); | 158 | curl_easy_cleanup (c); |
159 | MHD_stop_daemon (d); | ||
159 | if (cbc.pos != strlen ("/hello_world")) | 160 | if (cbc.pos != strlen ("/hello_world")) |
160 | { | 161 | return 4; |
161 | MHD_stop_daemon (d); | ||
162 | return 4; | ||
163 | } | ||
164 | |||
165 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 162 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |
166 | { | 163 | return 8; |
167 | MHD_stop_daemon (d); | ||
168 | return 8; | ||
169 | } | ||
170 | MHD_stop_daemon (d); | ||
171 | |||
172 | return 0; | 164 | return 0; |
173 | } | 165 | } |
174 | 166 | ||
@@ -220,17 +212,11 @@ testMultithreadedPut () | |||
220 | return 32; | 212 | return 32; |
221 | } | 213 | } |
222 | curl_easy_cleanup (c); | 214 | curl_easy_cleanup (c); |
215 | MHD_stop_daemon (d); | ||
223 | if (cbc.pos != strlen ("/hello_world")) | 216 | if (cbc.pos != strlen ("/hello_world")) |
224 | { | 217 | return 64; |
225 | MHD_stop_daemon (d); | ||
226 | return 64; | ||
227 | } | ||
228 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 218 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |
229 | { | 219 | return 128; |
230 | MHD_stop_daemon (d); | ||
231 | return 128; | ||
232 | } | ||
233 | MHD_stop_daemon (d); | ||
234 | 220 | ||
235 | return 0; | 221 | return 0; |
236 | } | 222 | } |