summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-18 00:19:45 +0000
committerJeremy Allison <jra@samba.org>2002-01-18 00:19:45 +0000
commit37834a48e8b944936c9eb067203f457136fb3a2c (patch)
tree69c54c74ca7868743331198288c67a3c0c084169
parentc311d24ce32d2a8aa244f126bcec67ec03549727 (diff)
downloadsamba-37834a48e8b944936c9eb067203f457136fb3a2c.tar.gz
samba-37834a48e8b944936c9eb067203f457136fb3a2c.tar.bz2
samba-37834a48e8b944936c9eb067203f457136fb3a2c.zip
Always clear malloced memory for parse structs.
Jeremy. (This used to be commit 6deb4caca5b45f87be84032fe0588db8d73b901a)
-rw-r--r--source3/rpc_parse/parse_prs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index 8bb9f1c70a..7b4a5f3181 100644
--- a/source3/rpc_parse/parse_prs.c
+++ b/source3/rpc_parse/parse_prs.c
@@ -106,6 +106,7 @@ BOOL prs_init(prs_struct *ps, uint32 size, TALLOC_CTX *ctx, BOOL io)
DEBUG(0,("prs_init: malloc fail for %u bytes.\n", (unsigned int)size));
return False;
}
+ memset(ps->data_p, '\0', (size_t)size);
ps->is_dynamic = True; /* We own this memory. */
}