initial sequence number mask short by 4 bits
authorTom Yu <tlyu@mit.edu>
Thu, 30 Oct 2003 23:34:07 +0000 (23:34 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 30 Oct 2003 23:34:07 +0000 (23:34 +0000)
* gen_seqnum.c (krb5_generate_seq_number): Fix mask; was short by
4 bits.

ticket: new
version_reported: 1.3.1
target_version: 1.3.2
component: krb5-libs
tags: pullup

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

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

index 57d63bfd7c4eee272774f81c7c15cd5b52a5c027..7ce92efa34a1fa99e973a9ce3c6d9ad8329e9598 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-30  Tom Yu  <tlyu@mit.edu>
+
+       * gen_seqnum.c (krb5_generate_seq_number): Fix mask; was short by
+       4 bits.
+
 2003-10-08  Tom Yu  <tlyu@mit.edu>
 
        * rd_safe.c (krb5_rd_safe_basic): Save the encoded KRB-SAFE-BODY
index 3747a2358302377ff1138572392024af5dfe9e6b..3737640977065530e7b2a1a590008634c9ec7c86 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 &= 0x3ffffff;
+    *seqno &= 0x3fffffff;
     if (*seqno == 0)
        *seqno = 1;
     return 0;