From ef51c0ee001baff90cd952107b15bd84d693e9f8 Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Sun, 14 Jun 2026 03:07:51 -0700 Subject: [PATCH] hisv6: guard against NULL innconf When built on a platform where configure defines MMAP_NEEDS_MSYNC (like OpenBSD), hisv6_open() dereferenced innconf unconditionally. Fixes #346. --- history/hisv6/hisv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/history/hisv6/hisv6.c b/history/hisv6/hisv6.c index 804883ec3..8d5aeb099 100644 --- a/history/hisv6/hisv6.c +++ b/history/hisv6/hisv6.c @@ -370,7 +370,7 @@ hisv6_reopen(struct hisv6 *h) on-disk copies out of sync with the mmap'ed copies most of the time. So if innd is using INCORE_MMAP, then we force everything else to use it, too (unless we're on NFS) */ - if (!innconf->nfsreader) { + if (innconf != NULL && !innconf->nfsreader) { opt.pag_incore = INCORE_MMAP; opt.exists_incore = INCORE_MMAP; }