From a739a9b4bb1156102180b6adcd460d59144e1a11 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 3 Apr 2018 12:02:23 +0200 Subject: [PATCH] Fixed negotiation offsets --- .gitignore | 2 +- .../vendor/github.com/vadimi/go-http-ntlm/negotiator.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 39ebab9..775eb9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /.idea -vendor/ +/src/calanonsync/vendor/golang.org/x/ /pkg /bin \ No newline at end of file diff --git a/src/calanonsync/vendor/github.com/vadimi/go-http-ntlm/negotiator.go b/src/calanonsync/vendor/github.com/vadimi/go-http-ntlm/negotiator.go index 0c46091..d30d7da 100644 --- a/src/calanonsync/vendor/github.com/vadimi/go-http-ntlm/negotiator.go +++ b/src/calanonsync/vendor/github.com/vadimi/go-http-ntlm/negotiator.go @@ -36,10 +36,10 @@ func negotiate() []byte { put32(ret[12:], uint32(flags)) // flags put16(ret[16:], 0) // NT domain name length put16(ret[18:], 0) // NT domain name max length - put32(ret[20:], 20) // NT domain name offset + put32(ret[20:], 0x20) // NT domain name offset put16(ret[24:], 0) // local workstation name length put16(ret[26:], 0) // local workstation name max length - put32(ret[28:], 20) // local workstation name offset + put32(ret[28:], 0x20) // local workstation name offset return ret }