From 28f2cb61677ecca206ab92090213db99928a91ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 28 Dec 2007 16:12:01 +0000 Subject: [PATCH] Make heim_ntlm_decode_type3 more useful and provide a username. From Ming Yang. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22370 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/ntlm/ntlm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ntlm/ntlm.c b/lib/ntlm/ntlm.c index 94b674685..7488c7c6d 100644 --- a/lib/ntlm/ntlm.c +++ b/lib/ntlm/ntlm.c @@ -732,7 +732,7 @@ heim_ntlm_decode_type3(const struct ntlm_buf *buf, CHECK(ret_buf(in, &ntlm, &type3->ntlm), 0); CHECK(ret_string(in, ucs2, &target, &type3->targetname), 0); CHECK(ret_string(in, ucs2, &username, &type3->username), 0); - CHECK(ret_string(in, ucs2, &username, &type3->ws), 0); + CHECK(ret_string(in, ucs2, &ws, &type3->ws), 0); if (sessionkey.offset) CHECK(ret_buf(in, &sessionkey, &type3->sessionkey), 0);