summaryrefslogtreecommitdiff
path: root/source4/torture/gentest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/gentest.c')
-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);