mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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
This commit is contained in:
parent
9289537c90
commit
7966b00b3a
@ -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)
|
_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,
|
ret_blob.length = strhex_to_str((char *)ret_blob.data, ret_blob.length,
|
||||||
strhex,
|
strhex,
|
||||||
|
Loading…
Reference in New Issue
Block a user