From 0a173444ac7bba8d69bbc80792215930ce65fdc3 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Wed, 19 May 2010 11:16:54 +0200 Subject: s3: registry: fix query empty valuenames Remove a check introduced with commit 80c2446321c519797a57b8006942a983f8481d79 wich causes queries for values with empty name to fail. Empty valuenames are used for the so called default value of a key. Signed-off-by: Michael Adam --- source3/registry/reg_backend_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 89a6e95a39..278359fa74 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -1560,7 +1560,7 @@ static int regdb_unpack_values(struct regval_ctr *values, uint8 *buf, int buflen /* add the new value. Paranoid protective code -- make sure data_p is valid */ - if (*valuename && size && data_p) { + if (size && data_p) { regval_ctr_addvalue(values, valuename, type, (const char *)data_p, size); } -- cgit