summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/registry/ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index 6c7c448b3d..87d066e2de 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -72,7 +72,7 @@ static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx,
case REG_BINARY:
if (val != NULL)
- *data = data_blob_talloc(mem_ctx, val->data, val->length);
+ *data = *val;
else {
data->data = NULL;
data->length = 0;
@@ -86,7 +86,7 @@ static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx,
break;
default:
- *data = data_blob_talloc(mem_ctx, val->data, val->length);
+ *data = *val;
break;
}
}