summaryrefslogtreecommitdiff
path: root/source3/torture/test_notify.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-26 20:16:26 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-04-02 09:03:43 +0200
commit5686c80966f3f58dbe7601c72f07662fd6cedbef (patch)
tree1ea2260f7d9df415e2cac37c1e343f07596c1529 /source3/torture/test_notify.c
parent70b7ef957376f1bcf4a223fd62639b3bcddd1003 (diff)
downloadsamba-5686c80966f3f58dbe7601c72f07662fd6cedbef.tar.gz
s3:torture: check the result of cli_nt_delete_on_close_recv() in test_notify.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/torture/test_notify.c')
-rw-r--r--source3/torture/test_notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/torture/test_notify.c b/source3/torture/test_notify.c
index e1755ad20c7..35e64bcd129 100644
--- a/source3/torture/test_notify.c
+++ b/source3/torture/test_notify.c
@@ -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;