]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload - Only switch ioloop for progress timeout when it is...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 4 Apr 2018 08:25:59 +0000 (10:25 +0200)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/test-http-payload.c

index 7be07a755785737411a0f788bb786fecc9f5f69d..2f83844f43de22772701f4933dd2d9a658d3c47c 100644 (file)
@@ -690,7 +690,8 @@ static void test_client_switch_ioloop(void)
 {
        struct test_client_request *tcreq;
 
-       to_client_progress = io_loop_move_timeout(&to_client_progress);
+       if (to_client_progress != NULL)
+               to_client_progress = io_loop_move_timeout(&to_client_progress);
 
        for (tcreq = client_requests; tcreq != NULL;
                tcreq = tcreq->next) {