summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/cliconnect.c4
-rw-r--r--source3/libsmb/clientgen.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index c13881bc21..ebe19b5143 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -464,7 +464,7 @@ static BOOL cli_session_setup_ntlmssp(struct cli_state *cli, const char *user,
pstring server_domain; /* FIX THIS, SHOULD be UCS2-LE */
neg_flags = NTLMSSP_NEGOTIATE_UNICODE |
- NTLMSSP_NEGOTIATE_128 |
+ NTLMSSP_NEGOTIATE_128 |
NTLMSSP_NEGOTIATE_NTLM |
NTLMSSP_REQUEST_TARGET;
@@ -573,8 +573,6 @@ static BOOL cli_session_setup_ntlmssp(struct cli_state *cli, const char *user,
if (cli_is_error(cli))
return False;
- set_signing_on_cli(cli, pass, nthash);
-
return True;
}
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index b35c7ea2ed..ab051426ae 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -119,7 +119,9 @@ BOOL cli_receive_smb(struct cli_state *cli)
if (!cli_check_sign_mac(cli)) {
DEBUG(0, ("SMB Signiture verification failed on incoming packet!\n"));
+ return False;
};
+ return True;
}
/****************************************************************************