From 2199a6ffa909d1b53c7f4a3b87634432980c78d9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 13 Apr 2004 15:56:37 +0000 Subject: r199: More registry rpc updates (This used to be commit 02ddf78e5563b15cb45ae4bc6234469be0dc0210) --- source4/torture/rpc/winreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/rpc/winreg.c') diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 3323ea5d35..39010d1ea8 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -267,7 +267,7 @@ static BOOL test_EnumValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct winreg_EnumValue r; struct winreg_Uint8buf vb; struct winreg_EnumValueName vn; - uint32 type = 0, requested_len = 0, returned_len = 0; + uint32 type = 0, requested_len = max_valbufsize, returned_len = 0; NTSTATUS status; r.in.handle = handle; @@ -275,7 +275,7 @@ static BOOL test_EnumValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, r.in.type = &type; r.in.requested_len = &requested_len; r.in.returned_len = &returned_len; - vn.max_len = max_valnamelen; + vn.max_len = 0; vn.len = 0; vn.buf = NULL; r.in.name = r.out.name = &vn; -- cgit