r2971: fix DsBind idl
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Oct 2004 10:16:22 +0000 (10:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:53 +0000 (12:59 -0500)
metze
(This used to be commit 9e50b3214b9de84811640296c19d6068936dfd54)

source4/librpc/idl/drsuapi.idl
source4/torture/rpc/drsuapi.c

index d49f3d294aa4a2ce2ff0b0a2587214616e968915..b950290d51a687ca84f0466f0bef1807e0b5d767 100644 (file)
@@ -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
                );
 
index 562291c6de37b48537568b242604f054c7da4c65..4338950811f1649cce561ad93428708e054fafb4 100644 (file)
@@ -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);