From 392ddf970c8f8486e79eec5214ed49912e344e09 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 21 Jul 2011 21:15:38 +0200 Subject: s3:libsmb: don't pass cli->called.name to NTLMv2_generate_names_blob() cli->called.name is never initialized, so this change doesn't change the behavior. And this behavior seems to be correct, see commit 29c0c37691da10bf061ba90a5b31482bda2fa486 s4/libcli: do not use netbios name in NTLMv2 blobs w/o spnego. metze --- source3/libsmb/cliconnect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 9b9d751284..5317c192bc 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -861,11 +861,11 @@ static struct tevent_req *cli_session_setup_nt1_send( /* * note that the 'workgroup' here is a best * guess - we don't know the server's domain - * at this point. The 'server name' is also - * dodgy... + * at this point. Windows clients also don't + * use hostname... */ names_blob = NTLMv2_generate_names_blob( - NULL, cli->called.name, workgroup); + NULL, NULL, workgroup); if (tevent_req_nomem(names_blob.data, req)) { return tevent_req_post(req, ev); -- cgit