summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-28 20:46:19 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-29 16:00:08 +0100
commit46f0b73c8a1fd372299fae5618d2e67f09e3f5e0 (patch)
tree608260812953846b3a50709fa95c3861efd4a946 /source4
parent04fa5b4957d4d668be612ded509d6d6c8070d270 (diff)
downloadsamba-46f0b73c8a1fd372299fae5618d2e67f09e3f5e0.tar.gz
samba-46f0b73c8a1fd372299fae5618d2e67f09e3f5e0.tar.bz2
samba-46f0b73c8a1fd372299fae5618d2e67f09e3f5e0.zip
s4:gentest: get the tid from the smbcli_tree struct
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/gentest.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index c7e32de359..91b60e2c4e 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -2467,10 +2467,12 @@ static void async_notify_smb(struct smbcli_request *req)
union smb_notify notify;
NTSTATUS status;
int i, j;
- uint16_t tid;
+ uint16_t tid = 0;
struct smbcli_transport *transport = req->transport;
- tid = SVAL(req->in.hdr, HDR_TID);
+ if (req->tree) {
+ tid = req->tree->tid;
+ }
notify.nttrans.level = RAW_NOTIFY_NTTRANS;
status = smb_raw_changenotify_recv(req, current_op.mem_ctx, &notify);