]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Another crashfix to auth_master_user_list_*()
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 17:12:10 +0000 (20:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 17:12:10 +0000 (20:12 +0300)
src/lib-auth/auth-master.c

index a039142421d0a51af34da167d0cd2d38405384d4..00137af71cf0213d7129dbbe41235177b94897ca 100644 (file)
@@ -687,7 +687,7 @@ const char *auth_master_user_list_next(struct auth_master_user_list_ctx *ctx)
 {
        const char *line;
 
-       if (ctx->failed)
+       if (ctx->conn->input == NULL)
                return NULL;
 
        /* try to read already buffered input */