Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8350:1d0cff9ae4cd HEAD
Minor code cleanup.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 29 Oct 2008 18:12:32 +0200 |
parents | 6503306b19cf |
children | cd83c5dc66d8 |
files | src/pop3-login/client.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pop3-login/client.c Wed Oct 29 17:41:05 2008 +0200 +++ b/src/pop3-login/client.c Wed Oct 29 18:12:32 2008 +0200 @@ -192,14 +192,17 @@ { char *line, *args; + i_assert(!client->common.authenticating); + timeout_reset(client->to_idle_disconnect); - if (!client_read(client)) return; client_ref(client); o_stream_cork(client->output); + /* if a command starts an authentication, stop processing further + commands until the authentication is finished. */ while (!client->output->closed && !client->common.authenticating && (line = i_stream_next_line(client->common.input)) != NULL) { args = strchr(line, ' ');