s3:registry: fix regdb_key_exists: the record has to contain at least the 4-byte...
authorMichael Adam <obnox@samba.org>
Sun, 14 Aug 2011 23:30:32 +0000 (01:30 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 15 Aug 2011 15:15:14 +0000 (17:15 +0200)
commit32b74111040f503cf033cdca8d1fbd621543004b
treef1c6f891f22917fc8ae75216e36a9cde75933c7c
parent8a36e721407dd8eb3b1df71fbbbc7a6e3c804e48
s3:registry: fix regdb_key_exists: the record has to contain at least the 4-byte subkey counter

More precisley, we return false if the record does not match the required
structure of a leading 4-byte subkey counter followed by the corresponding
number zero-terminated strings.
source3/registry/reg_backend_db.c