summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_notify.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-09-20 16:23:26 +0200
committerMichael Adam <obnox@samba.org>2012-09-22 10:18:59 +0200
commit1f0dfd42f16c388abc7054a7b615d2e81031472b (patch)
tree5cffa1eeef43bb40d06a159e06344f41a7fe65f1 /source3/smbd/smb2_notify.c
parent1f8e4732c5870043fbbc22c772404b5380f808f0 (diff)
downloadsamba-1f0dfd42f16c388abc7054a7b615d2e81031472b.tar.gz
samba-1f0dfd42f16c388abc7054a7b615d2e81031472b.tar.bz2
samba-1f0dfd42f16c388abc7054a7b615d2e81031472b.zip
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
Diffstat (limited to 'source3/smbd/smb2_notify.c')
-rw-r--r--source3/smbd/smb2_notify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/smb2_notify.c b/source3/smbd/smb2_notify.c
index 886bc89e99..0980c51ac4 100644
--- a/source3/smbd/smb2_notify.c
+++ b/source3/smbd/smb2_notify.c
@@ -359,10 +359,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;
}