From 8aa259d232aca22afab9c0bf8b95fcededf53b05 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Mon, 18 Aug 2008 09:55:44 -0700 Subject: [PATCH] Fix length error in wrapping spnego blob. Karoling this needs to be in 3.2.2 (sorry). (cherry picked from commit e2caa65a698ca7109aa44656ff9399104cf0663b) --- source/libsmb/clikrb5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index d30cc54cce6..a7ca24f7a2e 100644 --- a/source/libsmb/clikrb5.c +++ b/source/libsmb/clikrb5.c @@ -1870,7 +1870,7 @@ static krb5_error_code ads_krb5_get_fwd_ticket( krb5_context context, } /* We now have a service ticket, now turn it into an AP-REQ. */ - authenticator->length = ntohs(fwdData.length + GSSAPI_CHECKSUM_SIZE); + authenticator->length = fwdData.length + GSSAPI_CHECKSUM_SIZE; /* Caller should call free() when they're done with this. */ authenticator->data = (char *)pChksum; -- 2.11.4.GIT