Fix length error in wrapping spnego blob
authorIgor Mammedov <niallain@gmail.com>
Mon, 18 Aug 2008 16:55:11 +0000 (09:55 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 18 Aug 2008 16:55:11 +0000 (09:55 -0700)
(This used to be commit 16ee95494ba495c5f5ff8779206f380db1067b2d)

source3/libsmb/clikrb5.c

index 5bb33b11d75c0dcce004d9fb72d2ab18eca83d3e..fa21ad346739be1e6ece8f31253f92cda3446149 100644 (file)
@@ -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. */
        }
 
        /* 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;
 
        /* Caller should call free() when they're done with this. */
        authenticator->data = (char *)pChksum;