summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-04-13 15:56:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:16 -0500
commit2199a6ffa909d1b53c7f4a3b87634432980c78d9 (patch)
treeba32581a229a90728671979056b68c4eef25aca7 /source4/torture/rpc
parent662013e60e777e3db43470eddcfdfbcbeded2e5a (diff)
downloadsamba-2199a6ffa909d1b53c7f4a3b87634432980c78d9.tar.gz
samba-2199a6ffa909d1b53c7f4a3b87634432980c78d9.tar.bz2
samba-2199a6ffa909d1b53c7f4a3b87634432980c78d9.zip
r199: More registry rpc updates
(This used to be commit 02ddf78e5563b15cb45ae4bc6234469be0dc0210)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c4
1 files changed, 2 insertions, 2 deletions
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;