[dovecot-cvs] dovecot/src/imap-login client.c,1.36,1.37

cras at dovecot.org cras at dovecot.org
Thu Oct 28 13:27:26 EEST 2004


Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv5515/imap-login

Modified Files:
	client.c 
Log Message:
crashfixes



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- client.c	20 Oct 2004 17:07:32 -0000	1.36
+++ client.c	28 Oct 2004 10:27:23 -0000	1.37
@@ -469,12 +469,13 @@
 	if (client->proxy_user != NULL) {
 		safe_memset(client->proxy_password, 0,
 			    strlen(client->proxy_password));
-		i_free(client->proxy_user);
 		i_free(client->proxy_password);
-		client->proxy_user = NULL;
 		client->proxy_password = NULL;
 	}
 
+	i_free(client->proxy_user);
+	client->proxy_user = NULL;
+
 	if (client->proxy != NULL) {
 		login_proxy_free(client->proxy);
 		client->proxy = NULL;



More information about the dovecot-cvs mailing list