[dovecot-cvs] dovecot/src/imap-login client.c,1.41,1.42

cras at dovecot.org cras at dovecot.org
Sun May 8 20:16:31 EEST 2005


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

Modified Files:
	client.c 
Log Message:
STARTTLS was broken



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- client.c	30 Jan 2005 13:03:06 -0000	1.41
+++ client.c	8 May 2005 17:16:28 -0000	1.42
@@ -173,8 +173,9 @@
 	}
 
 	client_send_tagline(client, "OK Begin TLS negotiation now.");
-	if (o_stream_get_buffer_used_size(client->output) != 0) {
+	if (o_stream_flush(client->output) <= 0) {
 		/* the buffer has to be flushed */
+		o_stream_set_flush_pending(client->output, TRUE);
 		o_stream_set_flush_callback(client->output,
 					    client_output_starttls, client);
 	} else {



More information about the dovecot-cvs mailing list