From: Timo Sirainen Date: Sat, 21 Sep 2013 01:48:52 +0000 (+0300) Subject: lib-auth: Fixed infinite looping if user listing failed because auth process disconne... X-Git-Tag: 2.2.6~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e262b92fc5c1a73e5edac5b9f787c36325e2b6a1;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Fixed infinite looping if user listing failed because auth process disconnected. --- 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); }