From: Timo Sirainen Date: Mon, 5 Aug 2013 17:12:10 +0000 (+0300) Subject: lib-auth: Another crashfix to auth_master_user_list_*() X-Git-Tag: 2.2.5~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c26faa13d505338720edc5e336922d987fce91c;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Another crashfix to auth_master_user_list_*() --- diff --git a/src/lib-auth/auth-master.c b/src/lib-auth/auth-master.c index a039142421..00137af71c 100644 --- a/src/lib-auth/auth-master.c +++ b/src/lib-auth/auth-master.c @@ -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 */