summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-11-30 13:49:14 +0100
committerVolker Lendecke <vl@samba.org>2008-12-07 21:30:35 +0100
commit691cf386fbc5d57a35a5838b99ef5cca1bfbf944 (patch)
treec57cf104dee53dd6c26e524a6e7905fd721a2c35 /source3
parent54b90cd1da7368b4c51dce1ae80714d72dd8bf7f (diff)
downloadsamba-691cf386fbc5d57a35a5838b99ef5cca1bfbf944.tar.gz
samba-691cf386fbc5d57a35a5838b99ef5cca1bfbf944.tar.bz2
samba-691cf386fbc5d57a35a5838b99ef5cca1bfbf944.zip
Slightly simplify cli_session_setup_ntlmssp
Remove three pointless variables
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index b063475f4e..d33775fbb8 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -748,19 +748,11 @@ static NTSTATUS cli_session_setup_ntlmssp(struct cli_state *cli, const char *use
if (NT_STATUS_IS_OK(nt_status)) {
- DATA_BLOB key = data_blob(ntlmssp_state->session_key.data,
- ntlmssp_state->session_key.length);
- DATA_BLOB null_blob = data_blob_null;
- bool res;
-
fstrcpy(cli->server_domain, ntlmssp_state->server_domain);
cli_set_session_key(cli, ntlmssp_state->session_key);
- res = cli_simple_set_signing(cli, key, null_blob);
-
- data_blob_free(&key);
-
- if (res) {
+ if (cli_simple_set_signing(
+ cli, ntlmssp_state->session_key, data_blob_null)) {
/* 'resign' the last message, so we get the right sequence numbers
for checking the first reply from the server */