[dovecot-cvs] dovecot/src/imap client.c,1.50,1.51
cras at dovecot.org
cras at dovecot.org
Tue Dec 7 02:26:04 EET 2004
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv14525
Modified Files:
client.c
Log Message:
Added assert
Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- client.c 11 Nov 2004 22:10:56 -0000 1.50
+++ client.c 7 Dec 2004 00:26:01 -0000 1.51
@@ -56,11 +56,14 @@
void client_destroy(struct client *client)
{
+ int ret;
+
if (client->cmd_func != NULL) {
/* try to deinitialize the command */
i_stream_close(client->input);
o_stream_close(client->output);
- (void)client->cmd_func(client);
+ ret = client->cmd_func(client);
+ i_assert(ret);
}
if (client->mailbox != NULL)
More information about the dovecot-cvs
mailing list