summaryrefslogtreecommitdiff
path: root/source4/utils/ndrdump.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-08-06 00:06:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:24 -0500
commit8dde143765822b5d5806a3ea80c468bca0a2178d (patch)
tree76695d99e39c6a89a098dcd57e5b7b6be7a92e24 /source4/utils/ndrdump.c
parent918b1b3251351ba4002e45efcf5e516eb0950867 (diff)
downloadsamba-8dde143765822b5d5806a3ea80c468bca0a2178d.tar.gz
samba-8dde143765822b5d5806a3ea80c468bca0a2178d.tar.bz2
samba-8dde143765822b5d5806a3ea80c468bca0a2178d.zip
r9152: fix a crash bug
metze (This used to be commit d1868bd5912c5bb90509ace5c7ac8589c29e423c)
Diffstat (limited to 'source4/utils/ndrdump.c')
-rw-r--r--source4/utils/ndrdump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/utils/ndrdump.c b/source4/utils/ndrdump.c
index b80dbdc39c..078f1a1791 100644
--- a/source4/utils/ndrdump.c
+++ b/source4/utils/ndrdump.c
@@ -240,10 +240,9 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size)
dump_data(0, ndr->data+ndr->offset, ndr->data_size - ndr->offset);
}
- pr = talloc(NULL, struct ndr_print);
+ pr = talloc_zero(NULL, struct ndr_print);
pr->print = ndr_print_debug_helper;
pr->depth = 1;
- pr->flags = 0;
f->ndr_print(pr, function, flags, st);
if (!NT_STATUS_IS_OK(status) ||