From 4e37b7c053107479b54a2d8332c54d1944357ea2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 24 Apr 2006 00:09:25 +0200 Subject: [PATCH] Pointers to lists should be relative to current section, too. --- lib/conf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/conf2.c b/lib/conf2.c index b8f0ea94..c240f2d8 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -220,7 +220,7 @@ cf_init_section(byte *name, struct cf_section *sec, void *ptr, uns do_bzero) if (sec->cfg[i].cls == CC_SECTION) cf_init_section(sec->cfg[i].name, sec->cfg[i].u.sec, ptr + (addr_int_t) sec->cfg[i].ptr, 0); else if (sec->cfg[i].cls == CC_LIST) - clist_init(sec->cfg[i].ptr); + clist_init(ptr + (addr_int_t) sec->cfg[i].ptr); if (sec->init) { byte *msg = sec->init(ptr); if (msg) -- 2.39.2