From 2c6a880321fb9af670c332e8b78c5a33cc08ba99 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Sep 2006 00:24:21 +0000 Subject: r18348: fixed a valgrind error in RPC-SRVSVC (This used to be commit cc89ef3e1fd2f1d550ab65d32dfa894dc7963868) --- source4/torture/rpc/srvsvc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c index 492f21e9bf..f0e332ee20 100644 --- a/source4/torture/rpc/srvsvc.c +++ b/source4/torture/rpc/srvsvc.c @@ -788,6 +788,7 @@ static BOOL test_NetNameValidate(struct dcerpc_pipe *p, again: /* Find maximum length accepted by this type */ + ZERO_STRUCT(r.out); r.in.name_type = i; r.in.name = talloc_strdup(mem_ctx, "A"); n = 0; @@ -814,7 +815,7 @@ again: /* find invalid chars for this type check only ASCII between 0x20 and 0x7e */ - invalidc = NULL; + invalidc = talloc_strdup(mem_ctx, ""); for (n = 0x20; n < 0x7e; n++) { r.in.name = talloc_asprintf(mem_ctx, "%c", (char)n); -- cgit