From: Stefan Metzmacher Date: Fri, 1 May 2015 18:19:42 +0000 (+0200) Subject: s4:torture/smb2: verify STATUS_NOTIFY_CLEANUP return value X-Git-Tag: samba-4.1.19~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc0966d557f42e174b8d02ecb82388ac409668f9;p=thirdparty%2Fsamba.git 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) --- 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: