[dovecot-cvs] dovecot/src/imap-login client.c,1.8,1.9

cras at procontrol.fi cras at procontrol.fi
Thu Mar 6 23:44:33 EET 2003


Update of /home/cvs/dovecot/src/imap-login
In directory danu:/tmp/cvs-serv32049/imap-login

Modified Files:
	client.c 
Log Message:
We didn't work at all in non-inetd mode. Also fix crash when quitting.



Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- client.c	4 Mar 2003 22:38:07 -0000	1.8
+++ client.c	6 Mar 2003 21:44:31 -0000	1.9
@@ -385,9 +385,6 @@
 
 	hash_remove(clients, client);
 
-	imap_parser_destroy(client->parser);
-	client->parser = NULL;
-
 	i_stream_close(client->input);
 	o_stream_close(client->output);
 
@@ -413,6 +410,8 @@
 {
 	if (--client->refcount > 0)
 		return TRUE;
+
+	imap_parser_destroy(client->parser);
 
 	i_stream_unref(client->input);
 	o_stream_unref(client->output);




More information about the dovecot-cvs mailing list