diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-22 19:21:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:41 -0500 |
commit | c923e981cafcb9abde9bc5123351c34b2bb075d9 (patch) | |
tree | da09cd59a67102c5f2348db8246f2346c2fc0fd4 /source3/rpc_parse | |
parent | 9a82b0da7cf53ff6e01f288555e4766ab7307333 (diff) | |
download | samba-c923e981cafcb9abde9bc5123351c34b2bb075d9.tar.gz samba-c923e981cafcb9abde9bc5123351c34b2bb075d9.tar.bz2 samba-c923e981cafcb9abde9bc5123351c34b2bb075d9.zip |
r10432: BUG 3080: fix 'net rpc shutdown' for XP clients
(This used to be commit e877a5148783f4ce920a1f21f2081c32ebbbe827)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_reg.c | 3 | ||||
-rw-r--r-- | source3/rpc_parse/parse_shutdown.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c index 57157ce17e..be452033fe 100644 --- a/source3/rpc_parse/parse_reg.c +++ b/source3/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/source3/rpc_parse/parse_shutdown.c b/source3/rpc_parse/parse_shutdown.c index dac33243f1..de850ca4cc 100644 --- a/source3/rpc_parse/parse_shutdown.c +++ b/source3/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 */ |