[dovecot-cvs] dovecot/src/pop3-login client.c, 1.33, 1.34 pop3-proxy.c, 1.2, 1.3

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


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

Modified Files:
	client.c pop3-proxy.c 
Log Message:
crashfixes



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-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:02 -0000	1.33
+++ client.c	19 Oct 2004 15:47:45 -0000	1.34
@@ -343,8 +343,10 @@
 
 	hash_remove(clients, client);
 
-	i_stream_close(client->input);
-	o_stream_close(client->output);
+	if (client->input != NULL)
+		i_stream_close(client->input);
+	if (client->output != NULL)
+		o_stream_close(client->output);
 
 	if (client->common.auth_request != NULL) {
 		auth_client_request_abort(client->common.auth_request);
@@ -401,8 +403,10 @@
 	if (--client->refcount > 0)
 		return TRUE;
 
-	i_stream_unref(client->input);
-	o_stream_unref(client->output);
+	if (client->input != NULL)
+		i_stream_unref(client->input);
+	if (client->output != NULL)
+		o_stream_unref(client->output);
 
 	i_free(client->apop_challenge);
 	i_free(client->common.virtual_user);

Index: pop3-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/pop3-proxy.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pop3-proxy.c	18 Oct 2004 23:07:02 -0000	1.2
+++ pop3-proxy.c	19 Oct 2004 15:47:45 -0000	1.3
@@ -64,7 +64,7 @@
 		str_append(auth, client->proxy_password);
 
 		str = t_str_new(128);
-		str_append(str, "AUTH ");
+		str_append(str, "AUTH PLAIN ");
 		base64_encode(str_data(auth), str_len(auth), str);
 		str_append(str, "\r\n");
 		(void)o_stream_send(output, str_data(str), str_len(str));



More information about the dovecot-cvs mailing list