ctld: Don't add an iscsi port for targets with only kernel ports

PR:		293076
Reviewed by:	asomers
Fixes:		969876fcee ("ctld: parse config file independently of getting kernel info")
Differential Revision:	https://reviews.freebsd.org/D56523
This commit is contained in:
Ken J. Thomson
2026-04-23 15:15:48 -04:00
committed by John Baldwin
parent 7982985bdf
commit 614ef71849
+1 -1
View File
@@ -1461,7 +1461,7 @@ target::verify()
t_auth_group = t_conf->find_auth_group("default");
assert(t_auth_group != nullptr);
}
if (t_ports.empty()) {
if (t_ports.empty() && t_pports.empty()) {
struct portal_group *pg = default_portal_group();
assert(pg != NULL);
t_conf->add_port(this, pg, nullptr);