mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
s4:torture/rpc: let test_inq_princ_name_size also test for princ_name_size = 0 and BAD_STUB_DATA
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2a290dcb94
commit
a38f58ac85
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user