mirror of
https://github.com/samba-team/samba.git
synced 2025-02-14 01:57:53 +03:00
r6182: Jelmer, I think we need to initialize the switch_list, else we are
crash city. (This used to be commit 6526f21fb72094e8ff62bfc2693a49a3b1679a95)
This commit is contained in:
parent
934f11cb97
commit
b9df3f5fe8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user