summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 14:10:17 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 14:10:17 +0100
commitcc4e5c8beb95e67d91add0334807ada6eea8f9b7 (patch)
tree4a93088b450f0956ad7c6a2eef33921e9d606913 /source4
parent1cdeb0c0d280312df3e1c93a30e03cd0a7459fe9 (diff)
downloadsamba-cc4e5c8beb95e67d91add0334807ada6eea8f9b7.tar.gz
samba-cc4e5c8beb95e67d91add0334807ada6eea8f9b7.tar.bz2
samba-cc4e5c8beb95e67d91add0334807ada6eea8f9b7.zip
s4:registry - "LDB backend" - don't test for "0" as string termination on binary and unknown typed values
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/ldb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index b21ca8e27b..5f1a06c501 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -302,8 +302,7 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx,
case REG_BINARY:
default:
- if ((data.length > 0) && (data.data != NULL)
- && (data.data[0] != '\0')) {
+ if ((data.length > 0) && (data.data != NULL)) {
ret = ldb_msg_add_value(msg, "data", &data, NULL);
} else {
ret = ldb_msg_add_empty(msg, "data", LDB_FLAG_MOD_DELETE, NULL);