summaryrefslogtreecommitdiffstats
path: root/source/libsmb/cli_netlogon.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-09-14 04:32:52 +0000
committerTim Potter <tpot@samba.org>2001-09-14 04:32:52 +0000
commite4a3231a074b01cb1d6c4bf42e0a8e687e584413 (patch)
treed9e3e65d09c977b9dcec42b102100ab8181cf1ab /source/libsmb/cli_netlogon.c
parent06c619b395f212ec3122cf1c804b27afba04e79d (diff)
downloadsamba-e4a3231a074b01cb1d6c4bf42e0a8e687e584413.tar.gz
samba-e4a3231a074b01cb1d6c4bf42e0a8e687e584413.tar.xz
samba-e4a3231a074b01cb1d6c4bf42e0a8e687e584413.zip
Use session key from cli_state struct rather than the uninitialised one
when calling cli_netlogon_sam_sync(). (-:
Diffstat (limited to 'source/libsmb/cli_netlogon.c')
-rw-r--r--source/libsmb/cli_netlogon.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/libsmb/cli_netlogon.c b/source/libsmb/cli_netlogon.c
index cd68ea3503f..98f448c6a71 100644
--- a/source/libsmb/cli_netlogon.c
+++ b/source/libsmb/cli_netlogon.c
@@ -289,7 +289,6 @@ NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx,
NET_R_SAM_SYNC r;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DOM_CRED clnt_creds;
- uchar sess_key[16];
ZERO_STRUCT(q);
ZERO_STRUCT(r);
@@ -316,7 +315,7 @@ NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx,
/* Unmarshall response */
- if (!net_io_r_sam_sync("", sess_key, &r, &rbuf, 0)) {
+ if (!net_io_r_sam_sync("", cli->sess_key, &r, &rbuf, 0)) {
result = NT_STATUS_UNSUCCESSFUL;
goto done;
}
@@ -348,7 +347,6 @@ NTSTATUS cli_netlogon_sam_deltas(struct cli_state *cli, TALLOC_CTX *mem_ctx,
NET_R_SAM_DELTAS r;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DOM_CRED clnt_creds;
- uchar sess_key[16];
ZERO_STRUCT(q);
ZERO_STRUCT(r);
@@ -376,7 +374,7 @@ NTSTATUS cli_netlogon_sam_deltas(struct cli_state *cli, TALLOC_CTX *mem_ctx,
/* Unmarshall response */
- if (!net_io_r_sam_deltas("", sess_key, &r, &rbuf, 0)) {
+ if (!net_io_r_sam_deltas("", cli->sess_key, &r, &rbuf, 0)) {
result = NT_STATUS_UNSUCCESSFUL;
goto done;
}