[dovecot-cvs] dovecot/src/login client.c,1.12,1.13

cras at procontrol.fi cras at procontrol.fi
Wed Nov 20 21:30:34 EET 2002


Update of /home/cvs/dovecot/src/login
In directory danu:/tmp/cvs-serv21317

Modified Files:
	client.c 
Log Message:
If SSL handshake failed we accessed free'd memory.



Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/login/client.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- client.c	16 Nov 2002 05:21:21 -0000	1.12
+++ client.c	20 Nov 2002 19:30:31 -0000	1.13
@@ -56,6 +56,7 @@
 	/* must be removed before ssl_proxy_new(), since it may
 	   io_add() the same fd. */
 	io_remove(client->io);
+	client->io = NULL;
 
 	fd_ssl = ssl_proxy_new(client->fd);
 	if (fd_ssl != -1) {




More information about the dovecot-cvs mailing list