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 | 2bce2cf6d83d9889d8b116f9d2ee254b7ceb4828 (patch) | |
tree | b8948befcdd0a56820af7186a24ef0f762297e18 /source/rpc_parse | |
parent | 9cade656e2db743cb6ee67bbb8b0f50e8e4c39f9 (diff) | |
download | samba-2bce2cf6d83d9889d8b116f9d2ee254b7ceb4828.tar.gz |
Added clear-out-structure fix for make_unistr2.
Jeremy.
Diffstat (limited to 'source/rpc_parse')
-rw-r--r-- | source/rpc_parse/parse_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c index 4cb606688d4..0f242c47384 100644 --- a/source/rpc_parse/parse_misc.c +++ b/source/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; |