From bef222abcbeae20e7fba0068eb5577ee5b83c580 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 30 Oct 2003 23:34:07 +0000 Subject: [PATCH] initial sequence number mask short by 4 bits * 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 | 5 +++++ src/lib/krb5/krb/gen_seqnum.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 57d63bfd7..7ce92efa3 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2003-10-30 Tom Yu + + * gen_seqnum.c (krb5_generate_seq_number): Fix mask; was short by + 4 bits. + 2003-10-08 Tom Yu * rd_safe.c (krb5_rd_safe_basic): Save the encoded KRB-SAFE-BODY diff --git a/src/lib/krb5/krb/gen_seqnum.c b/src/lib/krb5/krb/gen_seqnum.c index 3747a2358..373764097 100644 --- a/src/lib/krb5/krb/gen_seqnum.c +++ b/src/lib/krb5/krb/gen_seqnum.c @@ -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; -- 2.26.2