From 6cd325c4596d782256d716ff5fc87e7b9fb2566d Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 23 May 2003 04:07:00 +0000 Subject: [PATCH] * gen_seqnum.c (krb5_generate_seq_number): Fix think-o on sequence 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 | 3 +++ src/lib/krb5/krb/gen_seqnum.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 0b7e9d94f..b84064f8d 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,8 @@ 2003-05-22 Tom Yu + * 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. diff --git a/src/lib/krb5/krb/gen_seqnum.c b/src/lib/krb5/krb/gen_seqnum.c index 1dc8a58b1..3747a2358 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 &= 0x5ffffff; + *seqno &= 0x3ffffff; if (*seqno == 0) *seqno = 1; return 0; -- 2.26.2