]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload - Do not continue running ioloop when failure occurred.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 4 Apr 2018 08:18:41 +0000 (10:18 +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 993abe3d8c0d260aa3aa257bf8f9892e1fbd0c99..7be07a755785737411a0f788bb786fecc9f5f69d 100644 (file)
@@ -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;
                }