From bc0966d557f42e174b8d02ecb82388ac409668f9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 1 May 2015 20:19:42 +0200 Subject: [PATCH] s4:torture/smb2: verify STATUS_NOTIFY_CLEANUP return value Bug: https://bugzilla.samba.org/show_bug.cgi?id=11182 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison (cherry picked from commit 4bfa6b024e530694741c7c07171fa09762578389) --- source4/torture/smb2/notify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index a7376614088..c47c2c240f3 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -1304,6 +1304,7 @@ static bool torture_smb2_notify_tree_disconnect_1( CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &(notify.smb2)); + CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP); CHECK_VAL(notify.smb2.out.num_changes, 0); done: @@ -1372,6 +1373,7 @@ static bool torture_smb2_notify_ulogoff(struct torture_context *torture, CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &(notify.smb2)); + CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP); CHECK_VAL(notify.smb2.out.num_changes, 0); done: -- 2.47.2