diff options
author | Jeremy Allison <jra@samba.org> | 2002-01-18 00:19:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-01-18 00:19:48 +0000 |
commit | 31a01faaac36df6a9ce306eca956ebabe78ed587 (patch) | |
tree | ddc10fa4c975cb595b6f2686a696ddc311e8aecc | |
parent | bb4cf9105a13a6c18603d92608f3745dbefd39ed (diff) | |
download | samba-31a01faaac36df6a9ce306eca956ebabe78ed587.tar.gz samba-31a01faaac36df6a9ce306eca956ebabe78ed587.tar.xz samba-31a01faaac36df6a9ce306eca956ebabe78ed587.zip |
Always clear malloced memory for parse structs.
Jeremy.
-rw-r--r-- | source/rpc_parse/parse_prs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_prs.c b/source/rpc_parse/parse_prs.c index f902210b7b8..d14d89b39ae 100644 --- a/source/rpc_parse/parse_prs.c +++ b/source/rpc_parse/parse_prs.c @@ -87,6 +87,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. */ } |