summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 18:39:51 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 20:49:27 +0200
commit43976bdececee5b2e4b70e5dffec5c2244092635 (patch)
tree2f21a67d3668b90a8c79dfbafc19646a1c99a283
parent7ec961d98724206bbc25abf3413df0433c30cf94 (diff)
downloadsamba-43976bdececee5b2e4b70e5dffec5c2244092635.tar.gz
samba-43976bdececee5b2e4b70e5dffec5c2244092635.tar.bz2
samba-43976bdececee5b2e4b70e5dffec5c2244092635.zip
s3:libsmb: make use of cli_state_server_session_key()
metze
-rw-r--r--source3/libsmb/cliconnect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index ec1ec670ac..4ebabceaa7 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -205,7 +205,7 @@ static struct tevent_req *cli_session_setup_lanman2_send(
SSVAL(vwv+2, 0, CLI_BUFFER_SIZE);
SSVAL(vwv+3, 0, 2);
SSVAL(vwv+4, 0, 1);
- SIVAL(vwv+5, 0, cli->sesskey);
+ SIVAL(vwv+5, 0, cli_state_server_session_key(cli));
SSVAL(vwv+7, 0, lm_response.length);
bytes = talloc_array(state, uint8_t, lm_response.length);
@@ -420,7 +420,7 @@ struct tevent_req *cli_session_setup_guest_create(TALLOC_CTX *mem_ctx,
SSVAL(vwv+2, 0, CLI_BUFFER_SIZE);
SSVAL(vwv+3, 0, 2);
SSVAL(vwv+4, 0, cli_state_get_vc_num(cli));
- SIVAL(vwv+5, 0, cli->sesskey);
+ SIVAL(vwv+5, 0, cli_state_server_session_key(cli));
SSVAL(vwv+7, 0, 0);
SSVAL(vwv+8, 0, 0);
SSVAL(vwv+9, 0, 0);
@@ -639,7 +639,7 @@ static struct tevent_req *cli_session_setup_plain_send(
SSVAL(vwv+2, 0, CLI_BUFFER_SIZE);
SSVAL(vwv+3, 0, 2);
SSVAL(vwv+4, 0, cli_state_get_vc_num(cli));
- SIVAL(vwv+5, 0, cli->sesskey);
+ SIVAL(vwv+5, 0, cli_state_server_session_key(cli));
SSVAL(vwv+7, 0, 0);
SSVAL(vwv+8, 0, 0);
SSVAL(vwv+9, 0, 0);
@@ -987,7 +987,7 @@ static struct tevent_req *cli_session_setup_nt1_send(
SSVAL(vwv+2, 0, CLI_BUFFER_SIZE);
SSVAL(vwv+3, 0, 2);
SSVAL(vwv+4, 0, cli_state_get_vc_num(cli));
- SIVAL(vwv+5, 0, cli->sesskey);
+ SIVAL(vwv+5, 0, cli_state_server_session_key(cli));
SSVAL(vwv+7, 0, lm_response.length);
SSVAL(vwv+8, 0, nt_response.length);
SSVAL(vwv+9, 0, 0);