[dovecot-cvs] dovecot/src/auth auth-client-connection.c,1.20,1.21

cras at dovecot.org cras at dovecot.org
Tue Oct 19 18:47:33 EEST 2004


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

Modified Files:
	auth-client-connection.c 
Log Message:
Don't crash with invalid auth client input.



Index: auth-client-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-client-connection.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- auth-client-connection.c	19 Oct 2004 02:51:37 -0000	1.20
+++ auth-client-connection.c	19 Oct 2004 15:47:31 -0000	1.21
@@ -207,6 +207,7 @@
 	request = auth_request_new(mech);
 	if (request == NULL)
 		return TRUE;
+	hash_insert(conn->auth_requests, POINTER_CAST(id), request);
 
 	request->conn = conn;
 	request->id = id;
@@ -279,7 +280,6 @@
 		initial_resp_data = buf->data;
 		initial_resp_len = buf->used;
 	}
-	hash_insert(conn->auth_requests, POINTER_CAST(id), request);
 
 	/* connection is referenced only until auth_callback is called. */
 	conn->refcount++;



More information about the dovecot-cvs mailing list