Fix length error in wrapping spnego blob. Karoling this needs to be in 3.2.2 (sorry). samba-3.2.2
authorIgor Mammedov <niallain@gmail.com>
Mon, 18 Aug 2008 16:55:44 +0000 (09:55 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 19 Aug 2008 06:20:10 +0000 (08:20 +0200)
(cherry picked from commit e2caa65a698ca7109aa44656ff9399104cf0663b)

source/libsmb/clikrb5.c

index d30cc54cce6b9397cdf4b912e6eebe77b084f428..a7ca24f7a2ecb22cd3b3979234a5b8f649e52661 100644 (file)
@@ -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;