summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/librpc/idl/drsuapi.idl5
-rw-r--r--source4/torture/rpc/drsuapi.c3
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl
index d49f3d294a..b950290d51 100644
--- a/source4/librpc/idl/drsuapi.idl
+++ b/source4/librpc/idl/drsuapi.idl
@@ -13,14 +13,13 @@ interface drsuapi
/* Function 0x00 */
typedef [flag(NDR_PAHEX)] struct {
- uint32 length;
+ [range(1,10000)] uint32 length;
[size_is(length)] uint8 data[];
} drsuapi_BindInfo;
NTSTATUS drsuapi_DsBind(
[in] GUID *server_guid,
- [in] uint32 unknown,
- [out] drsuapi_BindInfo *info,
+ [in,out] drsuapi_BindInfo *bind_info,
[out,ref] policy_handle *bind_handle
);
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index 562291c6de..4338950811 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -32,7 +32,8 @@ static BOOL test_DsBind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct drsuapi_DsBind r;
BOOL ret = True;
- ZERO_STRUCT(r);
+ r.in.server_guid = NULL;
+ r.in.bind_info = NULL;
r.out.bind_handle = bind_handle;
status = dcerpc_drsuapi_DsBind(p, mem_ctx, &r);