s4:torture/rpc: let test_inq_princ_name_size also test for princ_name_size = 0 and...
authorStefan Metzmacher <metze@samba.org>
Wed, 9 Aug 2023 15:24:07 +0000 (17:24 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 17 Oct 2023 19:20:38 +0000 (19:20 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/mgmt.c

index f3344c9510e83e99fe5aea6b4b5591d5af9c9f08..e873d4bb9acf3dce75a33aa0cc1a26b0007d1d42 100644 (file)
@@ -119,6 +119,12 @@ static bool test_inq_princ_name_size(struct torture_context *tctx,
        /*
         * 0 gives NT_STATUS_RPC_BAD_STUB_DATA
         */
+       r.in.princ_name_size = 0;
+
+       torture_assert_ntstatus_equal(tctx,
+                       dcerpc_mgmt_inq_princ_name_r(b, tctx, &r),
+                       NT_STATUS_RPC_BAD_STUB_DATA,
+                       "mgmt_inq_princ_name failed");
 
        for (i=1; i <= len; i++) {
                r.in.princ_name_size = i;