From 46f0b73c8a1fd372299fae5618d2e67f09e3f5e0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 Nov 2011 20:46:19 +0100 Subject: s4:gentest: get the tid from the smbcli_tree struct metze --- source4/torture/gentest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/torture') 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, ¬ify); -- cgit