[Bug 289115] ctld incorrectly test LUN duplication

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 26 Aug 2025 20:44:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289115

            Bug ID: 289115
           Summary: ctld incorrectly test LUN duplication
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: slw@zxy.spb.ru

After rewrote ctld to C++ protected member of struct target declarate as
std::array<struct lun *, MAX_LUNS> t_luns;
As result all member of t_luns has indeterminate value and no LUNs can be
defined in config -- all failed as "ctld: duplicate LUN".

For correct this declare as std::array<struct lun *, MAX_LUNS> t_luns{};

-- 
You are receiving this mail because:
You are the assignee for the bug.