From: Tom Yu Date: Thu, 30 Oct 2003 23:34:07 +0000 (+0000) Subject: initial sequence number mask short by 4 bits X-Git-Tag: krb5-1.4-beta1~729 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bef222abcbeae20e7fba0068eb5577ee5b83c580;p=krb5.git 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 --- 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;