git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d86c7f
)
Always clear malloced memory for parse structs.
author
Jeremy Allison
<jra@samba.org>
Fri, 18 Jan 2002 00:19:45 +0000
(
00:19
+0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 18 Jan 2002 00:19:45 +0000
(
00:19
+0000)
Jeremy.
source/rpc_parse/parse_prs.c
patch
|
blob
|
history
diff --git
a/source/rpc_parse/parse_prs.c
b/source/rpc_parse/parse_prs.c
index 8bb9f1c70aad5495d1fd04703be0208be80427a4..7b4a5f3181ffbd22ce1d2a1d641f5bbb74be1dfb 100644
(file)
--- a/
source/rpc_parse/parse_prs.c
+++ b/
source/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. */
}