diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-08 09:07:51 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:47 +0100 |
commit | f3efa1e5ff5764f61ac4985f51f41ad9c186495e (patch) | |
tree | 6333a31f7d8aca3d87036db49b813312a57ab207 | |
parent | a46a22883dad34231697cfee6a31087d0b183359 (diff) | |
download | samba-f3efa1e5ff5764f61ac4985f51f41ad9c186495e.tar.gz samba-f3efa1e5ff5764f61ac4985f51f41ad9c186495e.tar.xz samba-f3efa1e5ff5764f61ac4985f51f41ad9c186495e.zip |
r25905: use data_blob_const() to set the DATA_BLOB
metze
(This used to be commit f3393a731683be3f8664f715dceee0c9fcef4ede)
-rw-r--r-- | source4/librpc/ndr/ndr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 6fc6409cb21..61119b78da7 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -137,8 +137,7 @@ _PUBLIC_ struct ndr_push *ndr_push_init_ctx(TALLOC_CTX *mem_ctx) _PUBLIC_ DATA_BLOB ndr_push_blob(struct ndr_push *ndr) { DATA_BLOB blob; - blob.data = ndr->data; - blob.length = ndr->offset; + blob = data_blob_const(ndr->data, ndr->offset); if (ndr->alloc_size > ndr->offset) { ndr->data[ndr->offset] = 0; } |