svn commit: samba r10433 - in trunk/source/rpc_parse: .

jra at samba.org jra at samba.org
Thu Sep 22 19:28:21 GMT 2005


Author: jra
Date: 2005-09-22 19:28:20 +0000 (Thu, 22 Sep 2005)
New Revision: 10433

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10433

Log:
Janitor for Jerry so we don't regress on XP shutdown code :-).
Jeremy.

Modified:
   trunk/source/rpc_parse/parse_reg.c
   trunk/source/rpc_parse/parse_shutdown.c


Changeset:
Modified: trunk/source/rpc_parse/parse_reg.c
===================================================================
--- trunk/source/rpc_parse/parse_reg.c	2005-09-22 19:21:27 UTC (rev 10432)
+++ trunk/source/rpc_parse/parse_reg.c	2005-09-22 19:28:20 UTC (rev 10433)
@@ -1484,8 +1484,9 @@
 	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 */

Modified: trunk/source/rpc_parse/parse_shutdown.c
===================================================================
--- trunk/source/rpc_parse/parse_shutdown.c	2005-09-22 19:21:27 UTC (rev 10432)
+++ trunk/source/rpc_parse/parse_shutdown.c	2005-09-22 19:28:20 UTC (rev 10433)
@@ -34,8 +34,9 @@
 	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 */



More information about the samba-cvs mailing list