ldb: bump to version 1.1.19
[obnox/samba/samba-obnox.git] / source3 / torture / test_notify.c
index e1755ad20c72c29d593c3b1c4c459e2b53edf628..e377875ef85e79662cf4dcdc8c29e09aaa5cbdf0 100644 (file)
@@ -82,7 +82,7 @@ static void wait_for_one_notify_opened(struct tevent_req *subreq)
                req, struct wait_for_one_notify_state);
        NTSTATUS status;
 
-       status = cli_ntcreate_recv(subreq, &state->dnum);
+       status = cli_ntcreate_recv(subreq, &state->dnum, NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
                return;
@@ -334,7 +334,7 @@ static void notify_bench3_mkdir1_done(struct tevent_req *subreq)
                req, struct notify_bench3_state);
        NTSTATUS status;
 
-       status = cli_ntcreate_recv(subreq, &state->dnum);
+       status = cli_ntcreate_recv(subreq, &state->dnum, NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
                return;
@@ -471,7 +471,7 @@ static void notify_bench3_mksubdir_done(struct tevent_req *subreq)
                req, struct notify_bench3_state);
        NTSTATUS status;
 
-       status = cli_ntcreate_recv(subreq, &state->subdir_dnum);
+       status = cli_ntcreate_recv(subreq, &state->subdir_dnum, NULL);
        TALLOC_FREE(subreq);
        if (tevent_req_nterror(req, status)) {
                return;
@@ -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;