From 339e17ef737e865847028a9cab96daa7102ea4b2 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Fri, 15 Aug 2008 20:51:37 +0400 Subject: [PATCH] Length of data should be in host order to avoid incorrect size in futher handling Signed-off-by: Igor Mammedov --- source/libsmb/clikrb5.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c index d30cc54..a7ca24f 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; -- 1.5.3.7