From db77d64a2020ddcde5039dbd1572c7ba78abc8ec Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Mon, 9 Jul 2001 18:21:03 +0000 Subject: when converting ascii to unicode, if the ascii string is NULL, don't convert it, rpcstr_push doesn't like it. (This used to be commit a8006e6f3eb1e06f4d48727de31e1229d6eef58a) --- source3/rpc_parse/parse_misc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3') 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); } -- cgit