[dovecot-cvs] dovecot/src/auth login-connection.c,1.23,1.24

cras at procontrol.fi cras at procontrol.fi
Sun Jun 15 05:11:18 EEST 2003


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv19621/src/auth

Modified Files:
	login-connection.c 
Log Message:
We might have crashed if we ended up killing login processes with too old
auth requests.



Index: login-connection.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/login-connection.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- login-connection.c	23 May 2003 14:40:49 -0000	1.23
+++ login-connection.c	15 Jun 2003 01:11:16 -0000	1.24
@@ -276,8 +276,10 @@
 	struct login_connection *conn;
 
 	for (conn = connections; conn != NULL; conn = conn->next) {
+		conn->refcount++;
 		hash_foreach(conn->auth_requests,
 			     auth_request_hash_timeout_check, conn);
+		login_connection_unref(conn);
 	}
 }
 



More information about the dovecot-cvs mailing list