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);
 }
 

Reply via email to