From: Igor Mammedov Date: Mon, 18 Aug 2008 16:55:11 +0000 (-0700) Subject: Fix length error in wrapping spnego blob X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16ee95494ba495c5f5ff8779206f380db1067b2d;p=thirdparty%2Fsamba.git Fix length error in wrapping spnego blob --- diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index 5bb33b11d75..fa21ad34673 100644 --- a/source/libsmb/clikrb5.c +++ b/source/libsmb/clikrb5.c @@ -1910,7 +1910,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;