* gen_seqnum.c (krb5_generate_seq_number): Fix think-o on sequence
authorTom Yu <tlyu@mit.edu>
Fri, 23 May 2003 04:07:00 +0000 (04:07 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 23 May 2003 04:07:00 +0000 (04:07 +0000)
number mask.

ticket: 1262
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15480 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/gen_seqnum.c

index 0b7e9d94fef863c492a325e4f4b4f3bf30ca8e73..b84064f8d7d646c0f3aa285366f82ad1bfb9d15c 100644 (file)
@@ -1,5 +1,8 @@
 2003-05-22  Tom Yu  <tlyu@mit.edu>
 
+       * gen_seqnum.c (krb5_generate_seq_number): Fix think-o on sequence
+       number mask.
+
        * auth_con.c (krb5int_auth_con_chkseqnum): New function; implement
        heuristic for broken Heimdal sequence number encoding.
        (chk_heimdal_seqnum): Auxiliary function for above.
index 1dc8a58b13fc357f257d5942d98dedb9e939b7ad..3747a2358302377ff1138572392024af5dfe9e6b 100644 (file)
@@ -60,7 +60,7 @@ krb5_generate_seq_number(krb5_context context, const krb5_keyblock *key, krb5_ui
      * for about 2^30 messages to be sent before wrapping into
      * "negative" numbers.
      */
-    *seqno &= 0x5ffffff;
+    *seqno &= 0x3ffffff;
     if (*seqno == 0)
        *seqno = 1;
     return 0;