dovecot-2.0: pop3: Don't break client connection count if client...

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 6 23:22:32 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/1735958db2f1
changeset: 11083:1735958db2f1
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 06 23:22:29 2010 +0300
description:
pop3: Don't break client connection count if client init fails.

diffstat:

 src/pop3/pop3-client.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 4fc3aed0ef03 -r 1735958db2f1 src/pop3/pop3-client.c
--- a/src/pop3/pop3-client.c	Tue Apr 06 10:52:48 2010 +0300
+++ b/src/pop3/pop3-client.c	Tue Apr 06 23:22:29 2010 +0300
@@ -203,6 +203,8 @@
 	net_set_nonblock(fd_in, TRUE);
 	net_set_nonblock(fd_out, TRUE);
 
+	pop3_client_count++;
+
 	client = i_new(struct client, 1);
 	client->service_user = service_user;
 	client->set = set;
@@ -271,7 +273,6 @@
 		client->anvil_sent = TRUE;
 	}
 
-	pop3_client_count++;
 	DLLIST_PREPEND(&pop3_clients, client);
 	if (hook_client_created != NULL)
 		hook_client_created(&client);


More information about the dovecot-cvs mailing list