[dovecot-cvs] dovecot/src/imap client.c,1.70,1.71
tss at dovecot.org
tss at dovecot.org
Sat Nov 18 21:34:25 UTC 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv5611
Modified Files:
client.c
Log Message:
Added asserts
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- client.c 12 Nov 2006 11:32:41 -0000 1.70
+++ client.c 18 Nov 2006 21:34:22 -0000 1.71
@@ -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