]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
RPA auth mechanism: Fixed handling usernames longer than 255 characters.
authorTimo Sirainen <tss@iki.fi>
Tue, 17 Jun 2008 23:37:06 +0000 (02:37 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 17 Jun 2008 23:37:06 +0000 (02:37 +0300)
--HG--
branch : HEAD

src/auth/mech-rpa.c

index 0d2a69ea5c243171f3f3a1cae64f1b012642cc3e..51f67ca042644ff85e94e899a4bbd54db249bef7 100644 (file)
@@ -274,7 +274,7 @@ rpa_parse_token3(struct rpa_auth_request *request, const void *data,
                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;