From: Richard Sharpe Date: Sun, 3 Apr 2005 03:58:45 +0000 (+0000) Subject: r6182: Jelmer, I think we need to initialize the switch_list, else we are X-Git-Tag: release-4-0-0alpha6~801^3~11280 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=b9df3f5fe80087a55a45474a5a860aec2788a26d;p=ddiss%2Fsamba.git r6182: Jelmer, I think we need to initialize the switch_list, else we are crash city. (This used to be commit 6526f21fb72094e8ff62bfc2693a49a3b1679a95) --- diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index de87f0850a9..3a7ad7f29e3 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -320,7 +320,11 @@ void ndr_print_debug(ndr_print_fn_t fn, const char *name, void *ptr) 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); }