s3:libsmb/cliconnect: make use of ntlmssp_is_anonymous()
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Apr 2012 11:49:28 +0000 (13:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 Apr 2012 14:16:51 +0000 (16:16 +0200)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr 17 16:16:51 CEST 2012 on sn-devel-104

source3/libsmb/cliconnect.c

index 6e057a5fef487e2278ec432a22c72d558020f4f3..b9634eb402d038a35df8c788b2cd8e6ae02e8bb1 100644 (file)
@@ -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