diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_parse/parse_misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c index 216a6e2eca..857f964e31 100644 --- a/source3/rpc_parse/parse_misc.c +++ b/source3/rpc_parse/parse_misc.c @@ -910,6 +910,13 @@ void init_unistr2(UNISTR2 *str, const char *buf, size_t len) return; } + /* + * don't move this test above ! The UNISTR2 must be initialized !!! + * jfm, 7/7/2001. + */ + if (buf==NULL) + return; + rpcstr_push((char *)str->buffer, buf, len, STR_TERMINATE); } |