diff options
author | Michael Adam <obnox@samba.org> | 2009-02-24 22:16:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-02-26 13:22:51 +0100 |
commit | 63b576424db89739f40e45ac4802634d34456ee6 (patch) | |
tree | b9b064b751ec44d7f983a5c1a121c1f6e3cede86 | |
parent | 8c1e4034fe2ac956cec3854586d3d2fcec268697 (diff) | |
download | samba-63b576424db89739f40e45ac4802634d34456ee6.tar.gz samba-63b576424db89739f40e45ac4802634d34456ee6.tar.bz2 samba-63b576424db89739f40e45ac4802634d34456ee6.zip |
s3:registry: don't directly access key->subkeys->subkeys[] in reg_backend_db.c
Use the reg_objects accessor regsubkey_ctr_specific_key() instead.
Michael
-rw-r--r-- | source3/registry/reg_backend_db.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index fd17b44aab..29d0018202 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -648,8 +648,10 @@ bool regdb_store_keys(const char *key, struct regsubkey_ctr *ctr) (num_subkeys == old_num_subkeys)) { for (i = 0; i < num_subkeys; i++) { - if (strcmp(ctr->subkeys[i], - old_subkeys->subkeys[i]) != 0) { + if (strcmp(regsubkey_ctr_specific_key(ctr, i), + regsubkey_ctr_specific_key(old_subkeys, i)) + != 0) + { break; } } @@ -967,7 +969,7 @@ static bool create_sorted_subkeys(const char *key, const char *sorted_keyname) for (i = 0; i < num_subkeys; i++) { sorted_subkeys[i] = talloc_strdup_upper(sorted_subkeys, - ctr->subkeys[i]); + regsubkey_ctr_specific_key(ctr, i)); if (sorted_subkeys[i] == NULL) { goto fail; } |