The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=14f2cd78042372d27138a91dcb4f4845fe2e8194

commit 14f2cd78042372d27138a91dcb4f4845fe2e8194
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2025-08-04 19:38:06 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2025-08-04 19:38:06 +0000

    ctld: Permit valid integer LUN device types
    
    Fixes:          2e0caa7c7e14 ("libutil: Really fix expand_number(3)")
    Sponsored by:   Chelsio Communications
---
 usr.sbin/ctld/conf.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/ctld/conf.cc b/usr.sbin/ctld/conf.cc
index f3285ebf9d56..a8da88056d93 100644
--- a/usr.sbin/ctld/conf.cc
+++ b/usr.sbin/ctld/conf.cc
@@ -427,8 +427,8 @@ lun_set_device_type(const char *value)
                if (errstr != NULL) {
                        log_warnx("invalid device-type \"%s\" for lun \"%s\"", 
value,
                            lun->l_name);
+                       return (false);
                }
-               return (false);
        }
 
        lun->l_device_type = device_type;

Reply via email to