From 1334ed723edc5d746f355a836b3bc52ba85cda4b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Apr 2012 13:49:28 +0200 Subject: s3:libsmb/cliconnect: make use of ntlmssp_is_anonymous() metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Tue Apr 17 16:16:51 CEST 2012 on sn-devel-104 --- source3/libsmb/cliconnect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 6e057a5fef..b9634eb402 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1711,7 +1711,7 @@ static void cli_session_setup_ntlmssp_done(struct tevent_req *subreq) if (cli_state_protocol(state->cli) >= PROTOCOL_SMB2_02) { struct smbXcli_session *session = state->cli->smb2.session; - if (state->ntlmssp_state->nt_hash == NULL) { + if (ntlmssp_is_anonymous(state->ntlmssp_state)) { /* * Windows server does not set the * SMB2_SESSION_FLAG_IS_GUEST nor -- cgit