mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r25905: use data_blob_const() to set the DATA_BLOB
metze (This used to be commit f3393a731683be3f8664f715dceee0c9fcef4ede)
This commit is contained in:
parent
a46a22883d
commit
f3efa1e5ff
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user