Mercurial > dovecot > core-2.2
changeset 2979:10d1fd8d0865 HEAD
Deinitialize pending command only if it's actually executing. Fixes crash if
client disconnected while command was only half sent.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 15 Dec 2004 23:38:33 +0200 |
parents | 982e7432276f |
children | 65e28b1be20e |
files | src/imap/client.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/client.c Wed Dec 15 23:31:53 2004 +0200 +++ b/src/imap/client.c Wed Dec 15 23:38:33 2004 +0200 @@ -58,7 +58,7 @@ { int ret; - if (client->cmd_func != NULL) { + if (client->command_pending) { /* try to deinitialize the command */ i_stream_close(client->input); o_stream_close(client->output);