[dovecot-cvs] dovecot/src/auth auth-client-connection.c,1.42,1.43

cras at dovecot.org cras at dovecot.org
Fri May 5 18:07:06 EEST 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv24742

Modified Files:
	auth-client-connection.c 
Log Message:
If authentication client does something bad, don't crash the whole process
(clean NULL-pointer-write crash).



Index: auth-client-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-client-connection.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- auth-client-connection.c	22 Jan 2006 12:21:46 -0000	1.42
+++ auth-client-connection.c	5 May 2006 15:07:04 -0000	1.43
@@ -247,7 +247,8 @@
 		t_pop();
 
 		if (!ret) {
-			auth_client_connection_destroy(&conn);
+			struct auth_client_connection *tmp_conn = conn;
+			auth_client_connection_destroy(&tmp_conn);
 			break;
 		}
 	}



More information about the dovecot-cvs mailing list