ldb_get_value_by_id: Fix the return of the default value
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 13 Sep 2008 10:10:00 +0000 (12:10 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 21 Oct 2008 12:40:41 +0000 (14:40 +0200)
commitf58f74949d1c596a9c696dc71b325f7d4475fc5f
tree2a9eeb0ff04ff3bfd0e13ad3e5c2ae9c8f50e786
parent036b650ee4b4b32859c8ccfa797b20bbaa9a23e6
ldb_get_value_by_id: Fix the return of the default value

The return of the values of a certain key has been broken since I've introduced the default value.
Now the behaviour is correct: If no default value exists, start with index zero to fetch the other values. Otherwise let zero be the default value and enumerate the others starting with one.
source4/lib/registry/ldb.c