]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2_notify: don't call tevent_req_done() from smbd_smb2_notify_cancel()
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Sep 2012 14:23:26 +0000 (16:23 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 22 Sep 2012 08:18:59 +0000 (10:18 +0200)
smbd_notify_cancel_by_smbreq() will already trigger this via
smbd_smb2_notify_reply() and smbd_smb2_notify_reply_trigger().

metze

source3/smbd/smb2_notify.c

index 886bc89e99cd0179cb839409d8a6a60ecb796a7b..0980c51ac4eb6f6df22f8bc810b0a242d541b905 100644 (file)
@@ -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;
 }