summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2008-09-19 12:48:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-21 14:40:42 +0200
commit625359b2e266105022309df8985720108ecd6f67 (patch)
tree09e3ba0d22722fa5f1a7aceda41e5407f206dcb7 /source4/lib
parentfcc93f68a0d87d3f938bdd6ecd6dc91c6ab648d5 (diff)
downloadsamba-625359b2e266105022309df8985720108ecd6f67.tar.gz
samba-625359b2e266105022309df8985720108ecd6f67.tar.bz2
samba-625359b2e266105022309df8985720108ecd6f67.zip
Registry server LDB backend: Don't make copies of the same type
Diffstat (limited to 'source4/lib')
-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;
}
}