[dovecot-cvs] dovecot/src/imap client.c,1.51,1.52

cras at dovecot.org cras at dovecot.org
Wed Dec 15 23:38:35 EET 2004


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

Modified Files:
	client.c 
Log Message:
Deinitialize pending command only if it's actually executing. Fixes crash if
client disconnected while command was only half sent.



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/client.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- client.c	7 Dec 2004 00:26:01 -0000	1.51
+++ client.c	15 Dec 2004 21:38:33 -0000	1.52
@@ -58,7 +58,7 @@
 {
 	int ret;
 
-	if (client->cmd_func != NULL) {
+	if (client->command_pending) {
 		/* try to deinitialize the command */
 		i_stream_close(client->input);
 		o_stream_close(client->output);



More information about the dovecot-cvs mailing list