mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r10432: BUG 3080: fix 'net rpc shutdown' for XP clients
(This used to be commit e877a51487
)
This commit is contained in:
parent
9a82b0da7c
commit
c923e981ca
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user