[dovecot-cvs] dovecot/src/util rawlog.c,1.7,1.8

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


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

Modified Files:
	rawlog.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: rawlog.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/util/rawlog.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- rawlog.c	14 Jan 2006 18:48:18 -0000	1.7
+++ rawlog.c	26 Feb 2006 10:05:31 -0000	1.8
@@ -52,9 +52,9 @@
 	if (proxy->server_io != NULL)
 		io_remove(&proxy->server_io);
 
-	i_stream_unref(&proxy->server_input);
-	o_stream_unref(&proxy->client_output);
-	o_stream_unref(&proxy->server_output);
+	i_stream_destroy(&proxy->server_input);
+	o_stream_destroy(&proxy->client_output);
+	o_stream_destroy(&proxy->server_output);
 
 	if (close(proxy->client_in_fd) < 0)
 		i_error("close(client_in_fd) failed: %m");



More information about the dovecot-cvs mailing list