[dovecot-cvs] dovecot/src/imap client.c,1.78,1.79

tss at dovecot.org tss at dovecot.org
Thu Feb 22 21:49:36 UTC 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv26794/src/imap

Modified Files:
	client.c 
Log Message:
assert-crashfix



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- client.c	6 Feb 2007 18:52:49 -0000	1.78
+++ client.c	22 Feb 2007 21:49:34 -0000	1.79
@@ -399,9 +399,8 @@
 
 static void client_add_missing_io(struct client *client)
 {
-	if (client->io == NULL) {
-		i_assert(i_stream_get_fd(client->input) >= 0);
-		client->io = io_add(i_stream_get_fd(client->input),
+	if (client->io == NULL && !client->disconnected) {
+		client->io = io_add(client->fd_in,
 				    IO_READ, _client_input, client);
 	}
 }



More information about the dovecot-cvs mailing list