[dovecot-cvs] dovecot/src/pop3-login pop3-proxy.c,1.6,1.7

cras at dovecot.org cras at dovecot.org
Thu Nov 4 15:09:47 EET 2004


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

Modified Files:
	pop3-proxy.c 
Log Message:
Check that PASS replies with OK.



Index: pop3-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/pop3-proxy.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pop3-proxy.c	27 Oct 2004 14:20:21 -0000	1.6
+++ pop3-proxy.c	4 Nov 2004 13:09:44 -0000	1.7
@@ -86,6 +86,9 @@
 		client->proxy_state++;
 		return;
 	case 2:
+		if (strncmp(line, "+OK", 3) != 0)
+			break;
+
 		/* Login successful. Send this line to client. */
 		(void)o_stream_send_str(client->output, line);
 		(void)o_stream_send(client->output, "\r\n", 2);



More information about the dovecot-cvs mailing list