svn commit: samba r6188 - in branches/SAMBA_4_0/source/librpc/ndr: .
metze at samba.org
metze at samba.org
Mon Apr 4 05:52:53 GMT 2005
Author: metze
Date: 2005-04-04 05:52:53 +0000 (Mon, 04 Apr 2005)
New Revision: 6188
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6188
Log:
correct fix for rev 6182
we should start with an empty switch_list
in ndr_print as we do for ndr_pull/ndr_push
metze
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-03 21:37:13 UTC (rev 6187)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2005-04-04 05:52:53 UTC (rev 6188)
@@ -315,16 +315,12 @@
{
struct ndr_print *ndr;
- ndr = talloc(NULL, struct ndr_print);
+ ndr = talloc_zero(NULL, struct ndr_print);
if (!ndr) return;
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);
}
@@ -335,7 +331,7 @@
{
struct ndr_print *ndr;
- ndr = talloc(NULL, struct ndr_print);
+ ndr = talloc_zero(NULL, struct ndr_print);
if (!ndr) return;
ndr->print = ndr_print_debug_helper;
ndr->depth = 1;
More information about the samba-cvs
mailing list