1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r18348: fixed a valgrind error in RPC-SRVSVC

(This used to be commit cc89ef3e1f)
This commit is contained in:
Andrew Tridgell 2006-09-11 00:24:21 +00:00 committed by Gerald (Jerry) Carter
parent 81e4403e79
commit 2c6a880321

View File

@ -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);