[dovecot-cvs] dovecot/src/pop3-login client.c,1.35,1.36

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


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

Modified Files:
	client.c 
Log Message:
crashfixes



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- client.c	20 Oct 2004 17:07:33 -0000	1.35
+++ client.c	28 Oct 2004 10:27:22 -0000	1.36
@@ -367,15 +367,16 @@
 		client->common.fd = -1;
 	}
 
-	if (client->proxy_user != NULL) {
+	if (client->proxy_password != 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