diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-10-14 10:16:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:53 -0500 |
commit | 20ed511c1b126d7e5a578001a24b68eefe356bac (patch) | |
tree | 095501fe384920b290ceb4b1e66d1adb7c57f571 /source4 | |
parent | 64344b88d17fa92275f564f972566c4e600e7501 (diff) | |
download | samba-20ed511c1b126d7e5a578001a24b68eefe356bac.tar.gz samba-20ed511c1b126d7e5a578001a24b68eefe356bac.tar.bz2 samba-20ed511c1b126d7e5a578001a24b68eefe356bac.zip |
r2971: fix DsBind idl
metze
(This used to be commit 9e50b3214b9de84811640296c19d6068936dfd54)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/idl/drsuapi.idl | 5 | ||||
-rw-r--r-- | source4/torture/rpc/drsuapi.c | 3 |
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); |