1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-30 20:23:49 +03:00

r3572: Thanks to tridge for his patience with my build breakage.

This concludes the proper fixes.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2004-11-06 05:40:34 +00:00
committed by Gerald (Jerry) Carter
parent bffd18d09d
commit c1d025793f
3 changed files with 9 additions and 6 deletions

View File

@@ -63,13 +63,18 @@ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t leng
/*******************************************************************
construct a data blob which is a reference to another blob, in
the given mem context
reference a data blob, to the supplied TALLOC_CTX.
Returns a NULL DATA_BLOB on failure
*******************************************************************/
DATA_BLOB data_blob_talloc_reference(TALLOC_CTX *mem_ctx, DATA_BLOB *blob)
{
DATA_BLOB ret = *blob;
ret.data = talloc_reference(mem_ctx, ret.data);
ret.data = talloc_reference(mem_ctx, blob->data);
if (!ret.data) {
return data_blob(NULL, 0);
}
return ret;
}