diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-11 00:24:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:14 -0500 |
commit | 2c6a880321fb9af670c332e8b78c5a33cc08ba99 (patch) | |
tree | c05aa814782cafe6179663472ce7e192f4dbc62e | |
parent | 81e4403e79b6a21650ed7aa09563c5aa9026fdce (diff) | |
download | samba-2c6a880321fb9af670c332e8b78c5a33cc08ba99.tar.gz samba-2c6a880321fb9af670c332e8b78c5a33cc08ba99.tar.bz2 samba-2c6a880321fb9af670c332e8b78c5a33cc08ba99.zip |
r18348: fixed a valgrind error in RPC-SRVSVC
(This used to be commit cc89ef3e1fd2f1d550ab65d32dfa894dc7963868)
-rw-r--r-- | source4/torture/rpc/srvsvc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |