From cbf6caa7167c4ed1f28c1026a6fe419d3d0ecb51 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sat, 26 Jun 2004 11:34:42 +0000 Subject: r1264: Make sure to initialize ofs_list when creating new ndr_{push,pull} structures. (This used to be commit 6a39b17f6d8776ae695dc5c6caa0990ab2733e3c) --- source4/librpc/ndr/ndr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/librpc/ndr') diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 4c99c26d23..a3a2df3f59 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -55,6 +55,7 @@ struct ndr_pull *ndr_pull_init_blob(const DATA_BLOB *blob, TALLOC_CTX *mem_ctx) ndr->data_size = blob->length; ndr->offset = 0; ndr->mem_ctx = mem_ctx; + ndr->ofs_list = NULL; return ndr; } @@ -139,6 +140,7 @@ struct ndr_push *ndr_push_init_ctx(TALLOC_CTX *mem_ctx) ndr->ptr_count = 0; ndr->relative_list = NULL; ndr->relative_list_end = NULL; + ndr->ofs_list = NULL; return ndr; } -- cgit