Mercurial > dovecot > core-2.2
changeset 19413:8d9b48c59490
imap: Fixed crash at FETCH deinit caused by b638e19d3bd4
imap_fetch_free() would have been called twice, which caused problems.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 24 Nov 2015 12:56:35 +0200 |
parents | 26c565042d9d |
children | 20e51832875e |
files | src/imap/cmd-fetch.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-fetch.c Tue Nov 24 11:50:15 2015 +0200 +++ b/src/imap/cmd-fetch.c Tue Nov 24 12:56:35 2015 +0200 @@ -172,6 +172,11 @@ return TRUE; } +static bool cmd_fetch_finished(struct client_command_context *cmd ATTR_UNUSED) +{ + return TRUE; +} + static bool cmd_fetch_finish(struct imap_fetch_context *ctx, struct client_command_context *cmd) { @@ -199,6 +204,7 @@ output bytes are included in it (which wouldn't happen if we called client_disconnect() here directly). */ + cmd->func = cmd_fetch_finished; return cmd->cancel; }