From 583be9c85883da1ea69898d7ab0c224e4ac7df63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 2 Oct 2006 19:23:25 +0000 Subject: [PATCH] try harder to get the header calculations right git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18206 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/krb5/arcfour.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gssapi/krb5/arcfour.c b/lib/gssapi/krb5/arcfour.c index aa609a9ff..22ee643d9 100644 --- a/lib/gssapi/krb5/arcfour.c +++ b/lib/gssapi/krb5/arcfour.c @@ -363,7 +363,8 @@ _gssapi_wrap_arcfour(OM_uint32 * minor_status, } else { len = GSS_ARCFOUR_WRAP_TOKEN_SIZE; _gssapi_encap_length(len, &len, &total_len, GSS_KRB5_MECHANISM); - total_len = GSS_ARCFOUR_WRAP_TOKEN_SIZE + GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE + datalen; + len = total_len; + total_len += datalen; } output_message_buffer->length = total_len;