git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a46a228
)
r25905: use data_blob_const() to set the DATA_BLOB
author
Stefan Metzmacher
<metze@samba.org>
Thu, 8 Nov 2007 08:07:51 +0000
(09:07 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Dec 2007 04:44:47 +0000
(
05:44
+0100)
metze
(This used to be commit
f3393a731683be3f8664f715dceee0c9fcef4ede
)
source4/librpc/ndr/ndr.c
patch
|
blob
|
history
diff --git
a/source4/librpc/ndr/ndr.c
b/source4/librpc/ndr/ndr.c
index 6fc6409cb2167a35642728e9653c7ed9f7cdfbe3..61119b78da7abb1c78bb4f3d7a1f16102ef5e6cd 100644
(file)
--- 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;
}