From: Stephan Bosch Date: Wed, 4 Apr 2018 08:25:59 +0000 (+0200) Subject: lib-http: test-http-payload - Only switch ioloop for progress timeout when it is... X-Git-Tag: 2.3.11.2~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ea140dbfff50582e8cae305a57afe553163055;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-payload - Only switch ioloop for progress timeout when it is running. --- diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 7be07a7557..2f83844f43 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -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) {