diff options
author | Gregor Beck <gbeck@sernet.de> | 2010-05-19 11:16:54 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-05-21 00:22:45 +0200 |
commit | 0a173444ac7bba8d69bbc80792215930ce65fdc3 (patch) | |
tree | 0f4b7643ab4b35d84d868aded75970dd10fce225 /source3 | |
parent | 136ea7b91d0a712bf78ee325f06ab2d75f712507 (diff) | |
download | samba-0a173444ac7bba8d69bbc80792215930ce65fdc3.tar.gz samba-0a173444ac7bba8d69bbc80792215930ce65fdc3.tar.bz2 samba-0a173444ac7bba8d69bbc80792215930ce65fdc3.zip |
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 <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |