[dovecot-cvs] dovecot/src/imap client.c,1.67.2.3,1.67.2.4

tss at dovecot.org tss at dovecot.org
Sat Nov 18 21:34:22 UTC 2006


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

Modified Files:
      Tag: branch_1_0
	client.c 
Log Message:
Added asserts



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.67.2.3
retrieving revision 1.67.2.4
diff -u -d -r1.67.2.3 -r1.67.2.4
--- client.c	12 Nov 2006 11:32:40 -0000	1.67.2.3
+++ client.c	18 Nov 2006 21:34:20 -0000	1.67.2.4
@@ -278,6 +278,7 @@
 
 	client->command_pending = FALSE;
 	if (client->io == NULL && !client->disconnected) {
+		i_assert(i_stream_get_fd(client->input) >= 0);
 		client->io = io_add(i_stream_get_fd(client->input),
 				    IO_READ, _client_input, client);
 	}
@@ -374,6 +375,8 @@
 		client->input_skip_line = TRUE;
 		_client_reset_command(client);
 	} else {
+		i_assert(!client->disconnected);
+
 		client->input_skip_line = TRUE;
 		if (cmd->func(cmd) || cmd->param_error) {
 			/* command execution was finished. */



More information about the dovecot-cvs mailing list