summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-06-26 11:34:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:46 -0500
commitcbf6caa7167c4ed1f28c1026a6fe419d3d0ecb51 (patch)
tree4207cd87e530e281ef9a0f2d79bfecba199bbcc8 /source4/librpc
parentf7d05d579b6e579796383377fb8f46fd3d20bd5e (diff)
downloadsamba-cbf6caa7167c4ed1f28c1026a6fe419d3d0ecb51.tar.gz
samba-cbf6caa7167c4ed1f28c1026a6fe419d3d0ecb51.tar.bz2
samba-cbf6caa7167c4ed1f28c1026a6fe419d3d0ecb51.zip
r1264: Make sure to initialize ofs_list when creating new ndr_{push,pull}
structures. (This used to be commit 6a39b17f6d8776ae695dc5c6caa0990ab2733e3c)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/ndr/ndr.c2
1 files changed, 2 insertions, 0 deletions
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;
}