summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-18 21:06:07 +0200
committerGünther Deschner <gd@samba.org>2008-10-18 22:46:37 +0200
commit7966b00b3a0614a0824aa7ef7089973f21734ea8 (patch)
tree86e9676b3a98e4a838071ddbeefc5b9e73378f83 /lib/util
parent9289537c905c5e3dcc7d225a68901a8bf559c848 (diff)
downloadsamba-7966b00b3a0614a0824aa7ef7089973f21734ea8.tar.gz
samba-7966b00b3a0614a0824aa7ef7089973f21734ea8.tar.bz2
samba-7966b00b3a0614a0824aa7ef7089973f21734ea8.zip
lib/util: fix strhex_to_data_blob to use data_blob_talloc.
Jelmer, I'm pretty sure you wanted to do this. Please check. Guenther
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/util_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_str.c b/lib/util/util_str.c
index c105e1d58f..231f7f2c6f 100644
--- a/lib/util/util_str.c
+++ b/lib/util/util_str.c
@@ -222,7 +222,7 @@ _PUBLIC_ size_t strhex_to_str(char *p, size_t p_len, const char *strhex, size_t
*/
_PUBLIC_ _PURE_ DATA_BLOB strhex_to_data_blob(TALLOC_CTX *mem_ctx, const char *strhex)
{
- DATA_BLOB ret_blob = data_blob(mem_ctx, strlen(strhex)/2+1);
+ DATA_BLOB ret_blob = data_blob_talloc(mem_ctx, NULL, strlen(strhex)/2+1);
ret_blob.length = strhex_to_str((char *)ret_blob.data, ret_blob.length,
strhex,