]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Flush failed auth requests in their own data stack frames
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 27 Dec 2022 16:05:22 +0000 (11:05 -0500)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 11 Jan 2023 22:02:11 +0000 (00:02 +0200)
src/auth/auth-request-handler.c

index a6f599408172110c0b2bff4c335c53cb3b249d05..f6a77a833840eafcb1d65b62a675d9d91a1e7656 100644 (file)
@@ -951,7 +951,7 @@ void auth_request_handler_flush_failures(bool flush_all)
        }
 
        /* flush the requests */
-       for (i = 0; i < count; i++) {
+       for (i = 0; i < count; i++) T_BEGIN {
                auth_request = auth_requests[aqueue_idx(auth_failures, 0)];
                aqueue_delete_tail(auth_failures);
 
@@ -961,7 +961,7 @@ void auth_request_handler_flush_failures(bool flush_all)
                                           AUTH_CLIENT_RESULT_FAILURE,
                                           uchar_empty_ptr, 0);
                auth_request_unref(&auth_request);
-       }
+       } T_END;
 }
 
 static void auth_failure_timeout(void *context ATTR_UNUSED)