dovecot-1.2: RPA auth mechanism: Fixed handling usernames longer...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 18 02:37:38 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/a097b704be1b
changeset: 7884:a097b704be1b
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 bc5eca410ed3 -r a097b704be1b src/auth/mech-rpa.c
--- a/src/auth/mech-rpa.c Tue Jun 17 15:30:54 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