[dovecot-cvs] dovecot/src/pop3 client.c,1.62,1.63

cras at dovecot.org cras at dovecot.org
Sun Feb 26 12:05:31 EET 2006


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

Modified Files:
	client.c 
Log Message:
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- client.c	2 Feb 2006 19:38:01 -0000	1.62
+++ client.c	26 Feb 2006 10:05:28 -0000	1.63
@@ -230,8 +230,8 @@
 	if (client->io != NULL)
 		io_remove(&client->io);
 
-	i_stream_unref(&client->input);
-	o_stream_unref(&client->output);
+	i_stream_destroy(&client->input);
+	o_stream_destroy(&client->output);
 
 	if (close(client->fd_in) < 0)
 		i_error("close(client in) failed: %m");



More information about the dovecot-cvs mailing list