Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4831:7e50162a378c HEAD
Added asserts
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 18 Nov 2006 23:34:22 +0200 |
parents | a642d3df700f |
children | 9ea62a9720ec |
files | src/imap/client.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/client.c Sat Nov 18 23:29:58 2006 +0200 +++ b/src/imap/client.c Sat Nov 18 23:34:22 2006 +0200 @@ -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. */