dovecot-1.1: RPA auth mechanism: Fixed handling usernames longer...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 18 02:37:12 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/4182eb095cb5
changeset: 7675:4182eb095cb5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 18 02:37:06 2008 +0300
description:
RPA auth mechanism: Fixed handling usernames longer than 255 characters.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/auth/mech-rpa.c |    2 +-

diffs (12 lines):

diff -r dd896547f2a5 -r 4182eb095cb5 src/auth/mech-rpa.c
--- a/src/auth/mech-rpa.c	Tue Jun 17 12:35:44 2008 +0300
+++ b/src/auth/mech-rpa.c	Wed Jun 18 02:37:06 2008 +0300
@@ -274,7 +274,7 @@ rpa_parse_token3(struct rpa_auth_request
 		return FALSE;
 	}
 
-	len = (p[0] >> 8) + p[1];
+	len = (p[0] << 8) + p[1];
 	if (p + 2 + len > end) {
 		*error = "message too short";
 		return FALSE;


More information about the dovecot-cvs mailing list