[dovecot-cvs] dovecot/src/auth auth-master-connection.c, 1.41, 1.42 auth-worker-server.c, 1.8, 1.9 db-passwd-file.c, 1.21, 1.22

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


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

Modified Files:
	auth-master-connection.c auth-worker-server.c db-passwd-file.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: auth-master-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-master-connection.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- auth-master-connection.c	29 Jan 2006 12:14:40 -0000	1.41
+++ auth-master-connection.c	26 Feb 2006 10:04:59 -0000	1.42
@@ -272,9 +272,9 @@
 	conn->destroyed = TRUE;
 
 	if (conn->input != NULL)
-		i_stream_unref(&conn->input);
+		i_stream_destroy(&conn->input);
 	if (conn->output != NULL)
-		o_stream_unref(&conn->output);
+		o_stream_destroy(&conn->output);
 	if (conn->io != NULL)
 		io_remove(&conn->io);
 	if (conn->fd != -1) {

Index: auth-worker-server.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-worker-server.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- auth-worker-server.c	29 Jan 2006 12:14:40 -0000	1.8
+++ auth-worker-server.c	26 Feb 2006 10:04:59 -0000	1.9
@@ -128,8 +128,8 @@
 
 	buffer_free(conn->requests);
 	io_remove(&conn->io);
-	i_stream_unref(&conn->input);
-	o_stream_unref(&conn->output);
+	i_stream_destroy(&conn->input);
+	o_stream_destroy(&conn->output);
 
 	if (close(conn->fd) < 0)
 		i_error("close(auth worker) failed: %m");

Index: db-passwd-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/db-passwd-file.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- db-passwd-file.c	20 Feb 2006 16:31:46 -0000	1.21
+++ db-passwd-file.c	26 Feb 2006 10:04:59 -0000	1.22
@@ -189,7 +189,7 @@
 		}
 		t_pop();
 	}
-	i_stream_unref(&input);
+	i_stream_destroy(&input);
 
 	if (pw->db->debug) {
 		i_info("passwd-file %s: Read %u users",



More information about the dovecot-cvs mailing list