From: Tom Yu Date: Sat, 25 Jul 1998 01:15:34 +0000 (+0000) Subject: * wrap_size_limit.c (krb5_gss_wrap_size_limit): Fix to round down X-Git-Tag: krb5-1.1-beta1~622 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=131f95248de731750c9b23e72151899c32d25334;p=krb5.git * wrap_size_limit.c (krb5_gss_wrap_size_limit): Fix to round down by 8 even if the req_output_size-ohlen is a multiple of 8, since the wrap token is always padded regardless of whether it's a mutiple of 8 bytes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10737 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index bc5c57875..a94aeb72d 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,10 @@ +Fri Jul 24 21:13:53 1998 Tom Yu + + * wrap_size_limit.c (krb5_gss_wrap_size_limit): Fix to round down + by 8 even if the req_output_size-ohlen is a multiple of 8, since + the wrap token is always padded regardless of whether it's a + mutiple of 8 bytes. + 1998-06-08 Theodore Ts'o * k5unseal.c (kg_unseal): Clean up lint warnings. diff --git a/src/lib/gssapi/krb5/wrap_size_limit.c b/src/lib/gssapi/krb5/wrap_size_limit.c index e883efde1..f2366d16e 100644 --- a/src/lib/gssapi/krb5/wrap_size_limit.c +++ b/src/lib/gssapi/krb5/wrap_size_limit.c @@ -73,7 +73,7 @@ krb5_gss_wrap_size_limit(minor_status, context_handle, conf_req_flag, * Cannot have trailer length that will cause us to pad over * our length */ - *max_input_size = (req_output_size - ohlen) & (~7); + *max_input_size = (req_output_size - ohlen - 1) & (~7); else *max_input_size = 0; *minor_status = 0;