From e262b92fc5c1a73e5edac5b9f787c36325e2b6a1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 21 Sep 2013 04:48:52 +0300 Subject: [PATCH] lib-auth: Fixed infinite looping if user listing failed because auth process disconnected. --- src/lib-auth/auth-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-auth/auth-master.c b/src/lib-auth/auth-master.c index b55eb848ba..99b05e3a5d 100644 --- a/src/lib-auth/auth-master.c +++ b/src/lib-auth/auth-master.c @@ -713,7 +713,7 @@ const char *auth_master_user_list_next(struct auth_master_user_list_ctx *ctx) io_loop_set_current(ctx->conn->prev_ioloop); } - if (ctx->finished || ctx->failed) + if (ctx->finished || ctx->failed || ctx->conn->aborted) return NULL; return str_c(ctx->username); } -- 2.47.3