git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5209a84
)
Revert "Registry server LDB backend: Don't make copies of the same type"
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 21 Oct 2008 12:57:41 +0000
(14:57 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 21 Oct 2008 12:57:41 +0000
(14:57 +0200)
The original data pointer may go away so we do want to make copies in
this case.
This reverts commit
625359b2e266105022309df8985720108ecd6f67
.
source4/lib/registry/ldb.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/ldb.c
b/source4/lib/registry/ldb.c
index 9c1f59c4df6f75e28b6a39de651c33c4ca5fcbc2..018ea86d85ddf0c355c4008d8ebccc07de463d7d 100644
(file)
--- 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 =
*val
;
+ *data =
data_blob_talloc(mem_ctx, val->data, val->length)
;
else {
data->data = NULL;
data->length = 0;
@@
-86,7
+86,7
@@
static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx,
break;
default:
- *data =
*val
;
+ *data =
data_blob_talloc(mem_ctx, val->data, val->length)
;
break;
}
}