From 37834a48e8b944936c9eb067203f457136fb3a2c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 18 Jan 2002 00:19:45 +0000 Subject: Always clear malloced memory for parse structs. Jeremy. (This used to be commit 6deb4caca5b45f87be84032fe0588db8d73b901a) --- source3/rpc_parse/parse_prs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/rpc_parse') 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. */ } -- cgit