summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-08-26 17:40:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:23 -0500
commitd602d8c442a7cbcbf96f9f5673d92073d4361def (patch)
tree44a8b5e1680d012a17e97177e19fc1688da0b216 /source3/registry
parent7343eb9172bab6466a5e49cb44f14142287cfa3e (diff)
downloadsamba-d602d8c442a7cbcbf96f9f5673d92073d4361def.tar.gz
samba-d602d8c442a7cbcbf96f9f5673d92073d4361def.tar.bz2
samba-d602d8c442a7cbcbf96f9f5673d92073d4361def.zip
r9656: fix bug in sk record list with next offsets
(This used to be commit c588c2ee69fa72089e9c0aed6881a76f4e490d86)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/regfio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c
index aebb1ebaed..c453130713 100644
--- a/source3/registry/regfio.c
+++ b/source3/registry/regfio.c
@@ -1779,11 +1779,11 @@ static int hashrec_cmp( REGF_HASH_REC *h1, REGF_HASH_REC *h2 )
REGF_SK_REC *prev = nk->sec_desc->prev;
nk->sec_desc->prev_sk_off = prev->hbin_off + prev->hbin->first_hbin_off - HBIN_HDR_SIZE;
- prev->next_sk_off = nk->sk_off;
+ prev->next_sk_off = nk->sec_desc->sk_off;
}
}
- /* dump the reference count */
+ /* bump the reference count +1 */
nk->sk_off = nk->sec_desc->sk_off;
nk->sec_desc->ref_count++;