dovecot-1.2: Minor code cleanup.

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 29 18:12:35 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/1d0cff9ae4cd
changeset: 8350:1d0cff9ae4cd
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 29 18:12:32 2008 +0200
description:
Minor code cleanup.

diffstat:

1 file changed, 4 insertions(+), 1 deletion(-)
src/pop3-login/client.c |    5 ++++-

diffs (22 lines):

diff -r 6503306b19cf -r 1d0cff9ae4cd src/pop3-login/client.c
--- 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 @@ void client_input(struct pop3_client *cl
 {
 	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, ' ');


More information about the dovecot-cvs mailing list