From b582645a9f3b6562ff7421e4d969d7353c26c7fd Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 22 Sep 2005 19:21:27 +0000 Subject: [PATCH] r10432: BUG 3080: fix 'net rpc shutdown' for XP clients --- source/rpc_parse/parse_reg.c | 3 ++- source/rpc_parse/parse_shutdown.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/rpc_parse/parse_reg.c b/source/rpc_parse/parse_reg.c index 57157ce17e0..be452033fe2 100644 --- a/source/rpc_parse/parse_reg.c +++ b/source/rpc_parse/parse_reg.c @@ -1484,8 +1484,9 @@ void init_reg_q_shutdown(REG_Q_SHUTDOWN *q_u, const char *msg, q_u->server = TALLOC_P( get_talloc_ctx(), uint16 ); *q_u->server = 0x1; + q_u->message = TALLOC_ZERO_P( get_talloc_ctx(), UNISTR4 ); + if ( msg && *msg ) { - q_u->message = TALLOC_P( get_talloc_ctx(), UNISTR4 ); init_unistr4( q_u->message, msg, UNI_FLAGS_NONE ); /* Win2000 is apparently very sensitive to these lengths */ diff --git a/source/rpc_parse/parse_shutdown.c b/source/rpc_parse/parse_shutdown.c index 62c23a243c6..1f10be4e1b7 100644 --- a/source/rpc_parse/parse_shutdown.c +++ b/source/rpc_parse/parse_shutdown.c @@ -34,8 +34,9 @@ void init_shutdown_q_init(SHUTDOWN_Q_INIT *q_s, const char *msg, q_s->server = TALLOC_P( get_talloc_ctx(), uint16 ); *q_s->server = 0x1; + q_s->message = TALLOC_ZERO_P( get_talloc_ctx(), UNISTR4 ); + if ( msg && *msg ) { - q_s->message = TALLOC_P( get_talloc_ctx(), UNISTR4 ); init_unistr4( q_s->message, msg, UNI_FLAGS_NONE ); /* Win2000 is apparently very sensitive to these lengths */ -- 2.11.4.GIT