s3:torture: check the result of cli_nt_delete_on_close_recv() in test_notify.c
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Feb 2014 19:16:26 +0000 (20:16 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Apr 2014 07:03:43 +0000 (09:03 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/torture/test_notify.c

index e1755ad20c72c29d593c3b1c4c459e2b53edf628..35e64bcd1290013d50e4084878b7ec6c98885640 100644 (file)
@@ -579,6 +579,10 @@ static void notify_bench3_del_on_close_set(struct tevent_req *subreq)
 
        status = cli_nt_delete_on_close_recv(subreq);
        TALLOC_FREE(subreq);
+       if (tevent_req_nterror(req, status)) {
+               return;
+       }
+
        subreq = cli_close_send(state, state->ev, state->cli, state->dnum);
        if (tevent_req_nomem(subreq, req)) {
                return;