From: Stephan Bosch Date: Wed, 4 Apr 2018 08:18:41 +0000 (+0200) Subject: lib-http: test-http-payload - Do not continue running ioloop when failure occurred. X-Git-Tag: 2.3.11.2~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=081be1ccd93abd055e8a8e95727690794b79c9b0;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-payload - Do not continue running ioloop when failure occurred. --- diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 993abe3d8c..7be07a7557 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -1176,7 +1176,7 @@ static void test_client_echo_continue(void) (path == NULL ? "none" : path), client_files_first); } - if (client_files_first >= count) { + if (client_files_first >= count || failure != NULL) { io_loop_stop(current_ioloop); return; } @@ -1295,7 +1295,7 @@ static void test_client_echo_continue(void) } ioloop_nested_first = ioloop_nested_last = 0; - if (client_files_first >= count) { + if (client_files_first >= count || failure != NULL) { io_loop_stop(current_ioloop); return; }