]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/smb2: verify STATUS_NOTIFY_CLEANUP return value
authorStefan Metzmacher <metze@samba.org>
Fri, 1 May 2015 18:19:42 +0000 (20:19 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 May 2015 14:34:29 +0000 (16:34 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11182

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 4bfa6b024e530694741c7c07171fa09762578389)

source4/torture/smb2/notify.c

index a7376614088535050470e5446fdd3ee674024eef..c47c2c240f3cb6c94bc08dc487c77259ffb820a2 100644 (file)
@@ -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: