diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-07 17:40:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-07 17:40:28 +0200 |
commit | 82abaee62f000d379646ee412af45a1f8a1ddc87 (patch) | |
tree | 7053a4bfb8f5ef15aacfb1ee7e0e5540b9758cc4 /src/testcurl/test_post_loop.c | |
parent | 4720ace1a7d9b5cc83f9d3adceda12443d106c24 (diff) | |
download | libmicrohttpd-82abaee62f000d379646ee412af45a1f8a1ddc87.tar.gz libmicrohttpd-82abaee62f000d379646ee412af45a1f8a1ddc87.zip |
-minor cleanups
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r-- | src/testcurl/test_post_loop.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c index ec42ffce..f9238faa 100644 --- a/src/testcurl/test_post_loop.c +++ b/src/testcurl/test_post_loop.c | |||
@@ -521,7 +521,7 @@ testExternalPost () | |||
521 | if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) && | 521 | if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) && |
522 | (ctimeout >= 0) && ((uint64_t) ctimeout < timeout64)) | 522 | (ctimeout >= 0) && ((uint64_t) ctimeout < timeout64)) |
523 | timeout64 = (uint64_t) ctimeout; | 523 | timeout64 = (uint64_t) ctimeout; |
524 | if ( (c == NULL) || (0 == running) ) | 524 | if (0 == running) |
525 | timeout64 = 0; /* terminate quickly... */ | 525 | timeout64 = 0; /* terminate quickly... */ |
526 | tv.tv_sec = timeout64 / 1000; | 526 | tv.tv_sec = timeout64 / 1000; |
527 | tv.tv_usec = (timeout64 % 1000) * 1000; | 527 | tv.tv_usec = (timeout64 % 1000) * 1000; |
@@ -576,14 +576,11 @@ testExternalPost () | |||
576 | fprintf (stderr, "libcurl haven't returned OK code\n"); | 576 | fprintf (stderr, "libcurl haven't returned OK code\n"); |
577 | abort (); | 577 | abort (); |
578 | } | 578 | } |
579 | curl_multi_remove_handle (multi, c); | ||
580 | curl_easy_cleanup (c); | ||
581 | c = NULL; | ||
582 | break; | 579 | break; |
583 | } | 580 | } |
584 | MHD_run (d); | 581 | MHD_run (d); |
585 | } | 582 | } |
586 | if (c != NULL) | 583 | if (NULL != c) |
587 | { | 584 | { |
588 | curl_multi_remove_handle (multi, c); | 585 | curl_multi_remove_handle (multi, c); |
589 | curl_easy_cleanup (c); | 586 | curl_easy_cleanup (c); |