diff options
author | Richard Sharpe <sharpe@samba.org> | 2005-04-03 03:58:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:23 -0500 |
commit | b9df3f5fe80087a55a45474a5a860aec2788a26d (patch) | |
tree | 44c45b4627a94063610f63091867784c50fbc562 /source4 | |
parent | 934f11cb97fdfa47b49f5d6d084d79895ee406cb (diff) | |
download | samba-b9df3f5fe80087a55a45474a5a860aec2788a26d.tar.gz samba-b9df3f5fe80087a55a45474a5a860aec2788a26d.tar.bz2 samba-b9df3f5fe80087a55a45474a5a860aec2788a26d.zip |
r6182: Jelmer, I think we need to initialize the switch_list, else we are
crash city.
(This used to be commit 6526f21fb72094e8ff62bfc2693a49a3b1679a95)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/ndr/ndr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index de87f0850a..3a7ad7f29e 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); } |