[dovecot-cvs] dovecot/src/imap-login client.c,1.33,1.34

cras at dovecot.org cras at dovecot.org
Tue Oct 19 18:47:47 EEST 2004


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

Modified Files:
	client.c 
Log Message:
crashfixes



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- client.c	18 Oct 2004 23:07:01 -0000	1.33
+++ client.c	19 Oct 2004 15:47:45 -0000	1.34
@@ -442,7 +442,8 @@
 
 	hash_remove(clients, client);
 
-	i_stream_close(client->input);
+	if (client->input != NULL)
+		i_stream_close(client->input);
 	if (client->output != NULL)
 		o_stream_close(client->output);
 
@@ -505,7 +506,8 @@
 
 	imap_parser_destroy(client->parser);
 
-	i_stream_unref(client->input);
+	if (client->input != NULL)
+		i_stream_unref(client->input);
 	if (client->output != NULL)
 		o_stream_unref(client->output);
 



More information about the dovecot-cvs mailing list