From 622c4ded2f20585bd984c35eb6204bb048f5fdf6 Mon Sep 17 00:00:00 2001 From: Sushant Mathur Date: Thu, 6 Sep 2018 08:11:35 +0530 Subject: [PATCH] Fixed incorrect NTLM version. It was 00 earlier, changed it to 0f(15). Also made the reserved field before it 00 00 00 instead of 0f 00 00. --- lib/ntlm/ntlm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ntlm/ntlm.c b/lib/ntlm/ntlm.c index 42dd09bed..9670a9718 100644 --- a/lib/ntlm/ntlm.c +++ b/lib/ntlm/ntlm.c @@ -636,10 +636,10 @@ encode_os_version(krb5_storage *out) CHECK(krb5_store_uint8(out, 0x06), 0); CHECK(krb5_store_uint8(out, 0x01), 0); CHECK(krb5_store_uint16(out, 0x1db0), 0); + CHECK(krb5_store_uint8(out, 0x00), 0); + CHECK(krb5_store_uint8(out, 0x00), 0); + CHECK(krb5_store_uint8(out, 0x00), 0); CHECK(krb5_store_uint8(out, 0x0f), 0); /* ntlm version 15 */ - CHECK(krb5_store_uint8(out, 0x00), 0); - CHECK(krb5_store_uint8(out, 0x00), 0); - CHECK(krb5_store_uint8(out, 0x00), 0); out: return ret; }