]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Fixed infinite looping if user listing failed because auth process disconne...
authorTimo Sirainen <tss@iki.fi>
Sat, 21 Sep 2013 01:48:52 +0000 (04:48 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 21 Sep 2013 01:48:52 +0000 (04:48 +0300)
src/lib-auth/auth-master.c

index b55eb848ba817acd339b4fd03c2d1a3a78eb1ec7..99b05e3a5d3c0aa5d4899a305334233f2fcb12fe 100644 (file)
@@ -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);
 }