1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

r1264: Make sure to initialize ofs_list when creating new ndr_{push,pull}

structures.
This commit is contained in:
Tim Potter
2004-06-26 11:34:42 +00:00
committed by Gerald (Jerry) Carter
parent e031953359
commit 6a39b17f6d

View File

@ -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;
}