summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-28 16:28:21 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-28 17:16:50 +0200
commit1e43bacd5e1a9e804ff2cd82fed75302cb630efd (patch)
tree8e4b50461b3bec978e546108d1de3a3c63fdf1fa /source3/libsmb
parent9e0d975512f12d5b0e474b60a749d8be9f07791d (diff)
downloadsamba-1e43bacd5e1a9e804ff2cd82fed75302cb630efd.tar.gz
samba-1e43bacd5e1a9e804ff2cd82fed75302cb630efd.tar.bz2
samba-1e43bacd5e1a9e804ff2cd82fed75302cb630efd.zip
s3:libsmb: use cli_smb_req_set_mid() in cli_smb_oplock_break_waiter_send()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index c5cbc1eee2..06b9fff407 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -1091,7 +1091,6 @@ struct tevent_req *cli_smb_oplock_break_waiter_send(TALLOC_CTX *mem_ctx,
{
struct tevent_req *req, *subreq;
struct cli_smb_oplock_break_waiter_state *state;
- struct cli_smb_state *smb_state;
req = tevent_req_create(mem_ctx, &state,
struct cli_smb_oplock_break_waiter_state);
@@ -1107,8 +1106,7 @@ struct tevent_req *cli_smb_oplock_break_waiter_send(TALLOC_CTX *mem_ctx,
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
}
- smb_state = tevent_req_data(subreq, struct cli_smb_state);
- SSVAL(smb_state->header, smb_mid, 0xffff);
+ cli_smb_req_set_mid(subreq, 0xffff);
if (!cli_smb_req_set_pending(subreq)) {
tevent_req_nterror(req, NT_STATUS_NO_MEMORY);