Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2445:5376a3c388c0 HEAD
Set bad_counter before calling client_command_reset because it may parse
more commands.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 22 Aug 2004 12:15:26 +0300 |
parents | 881e265febfa |
children | 47e1e05cede0 |
files | src/imap/client.c src/imap/cmd-idle.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/client.c Sun Aug 22 12:13:50 2004 +0300 +++ b/src/imap/client.c Sun Aug 22 12:15:26 2004 +0300 @@ -265,8 +265,8 @@ /* command is being executed - continue it */ if (client->cmd_func(client)) { /* command execution was finished */ + client->bad_counter = 0; _client_reset_command(client); - client->bad_counter = 0; return TRUE; } return FALSE; @@ -313,8 +313,8 @@ client->input_skip_line = TRUE; if (client->cmd_func(client)) { /* command execution was finished */ + client->bad_counter = 0; _client_reset_command(client); - client->bad_counter = 0; } else { /* unfinished */ return FALSE; @@ -381,8 +381,8 @@ o_stream_cork(client->output); if (client->cmd_func(client)) { /* command execution was finished */ + client->bad_counter = 0; _client_reset_command(client); - client->bad_counter = 0; } o_stream_uncork(client->output); }