svn commit: samba r6182 - in branches/SAMBA_4_0/source/librpc/ndr: .

sharpe at samba.org sharpe at samba.org
Sun Apr 3 03:58:46 GMT 2005


Author: sharpe
Date: 2005-04-03 03:58:45 +0000 (Sun, 03 Apr 2005)
New Revision: 6182

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

Log:

Jelmer, I think we need to initialize the switch_list, else we are 
crash city.


Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr.c	2005-04-02 22:46:21 UTC (rev 6181)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c	2005-04-03 03:58:45 UTC (rev 6182)
@@ -320,7 +320,11 @@
 	ndr->print = ndr_print_debug_helper;
 	ndr->depth = 1;
 	ndr->flags = 0;
+	ndr->switch_list = talloc(ndr, struct ndr_token_list);
+	if (!ndr->switch_list)
+		goto fail;
 	fn(ndr, name, ptr);
+fail:
 	talloc_free(ndr);
 }
 



More information about the samba-cvs mailing list