summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-28 18:32:34 +0000
committerJeremy Allison <jra@samba.org>1998-10-28 18:32:34 +0000
commite600debafb7dd4320c254d504347827eb6745406 (patch)
tree3a3cc756f2f3403b72ee70010a091402e63928d9 /source3/rpc_parse
parente3cfbdd88bd7522ad7f62636d4f924b737c89688 (diff)
downloadsamba-e600debafb7dd4320c254d504347827eb6745406.tar.gz
samba-e600debafb7dd4320c254d504347827eb6745406.tar.bz2
samba-e600debafb7dd4320c254d504347827eb6745406.zip
Added clear-out-structure fix for make_unistr2.
Jeremy. (This used to be commit 2bce2cf6d83d9889d8b116f9d2ee254b7ceb4828)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 4cb606688d..0f242c4738 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -475,6 +475,8 @@ creates a UNISTR2 structure.
********************************************************************/
void make_unistr2(UNISTR2 *str, char *buf, int len)
{
+ ZERO_STRUCTP(str);
+
/* set up string lengths. */
str->uni_max_len = len;
str->undoc = 0;