From f0fce586393d772e4e78a14513394dc189e98923 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 20 Sep 2012 16:23:26 +0200 Subject: [PATCH] s3:smb2_notify: don't call tevent_req_done() from smbd_smb2_notify_cancel() smbd_notify_cancel_by_smbreq() will already trigger this via smbd_smb2_notify_reply() and smbd_smb2_notify_reply_trigger(). metze (cherry picked from commit 1f0dfd42f16c388abc7054a7b615d2e81031472b) Signed-off-by: Stefan Metzmacher (cherry picked from commit 3326b16454c9b4299a7213c42c3a63a29e3b20dc) --- source3/smbd/smb2_notify.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/smbd/smb2_notify.c b/source3/smbd/smb2_notify.c index 72430eb9558..961ee9dd1a9 100644 --- a/source3/smbd/smb2_notify.c +++ b/source3/smbd/smb2_notify.c @@ -357,10 +357,9 @@ static bool smbd_smb2_notify_cancel(struct tevent_req *req) struct smbd_smb2_notify_state *state = tevent_req_data(req, struct smbd_smb2_notify_state); + state->smb2req->cancelled = true; smbd_notify_cancel_by_smbreq(state->smbreq); - state->smb2req->cancelled = true; - tevent_req_done(req); return true; } -- 2.11.4.GIT