git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e4403
)
r18348: fixed a valgrind error in RPC-SRVSVC
author
Andrew Tridgell
<tridge@samba.org>
Mon, 11 Sep 2006 00:24:21 +0000
(
00:24
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:18:14 +0000
(14:18 -0500)
(This used to be commit
cc89ef3e1fd2f1d550ab65d32dfa894dc7963868
)
source4/torture/rpc/srvsvc.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/srvsvc.c
b/source4/torture/rpc/srvsvc.c
index 492f21e9bf229933fe74f5071ba829bf9acdf05d..f0e332ee2004d5e2b99af7be48c399c17cb67da4 100644
(file)
--- 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);