diff options
author | Jeremy Allison <jra@samba.org> | 1998-10-28 18:32:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-10-28 18:32:34 +0000 |
commit | e600debafb7dd4320c254d504347827eb6745406 (patch) | |
tree | 3a3cc756f2f3403b72ee70010a091402e63928d9 | |
parent | e3cfbdd88bd7522ad7f62636d4f924b737c89688 (diff) | |
download | samba-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)
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 2 |
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; |