The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ca81304f7cbe033be802e3e2ef12378a61fe2175
commit ca81304f7cbe033be802e3e2ef12378a61fe2175 Author: John Baldwin <j...@freebsd.org> AuthorDate: 2025-01-24 14:53:44 +0000 Commit: John Baldwin <j...@freebsd.org> CommitDate: 2025-01-24 14:53:44 +0000 ctld: Fix assertion against the wrong field Reviewed by: mav, imp, asomers Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D48622 --- usr.sbin/ctld/discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ctld/discovery.c b/usr.sbin/ctld/discovery.c index f548b41d5cba..09613284f881 100644 --- a/usr.sbin/ctld/discovery.c +++ b/usr.sbin/ctld/discovery.c @@ -161,7 +161,7 @@ discovery_target_filtered_out(const struct ctld_connection *conn, ag = targ->t_auth_group; pg = conn->conn_portal->p_portal_group; - assert(pg->pg_discovery_auth_group != PG_FILTER_UNKNOWN); + assert(pg->pg_discovery_filter != PG_FILTER_UNKNOWN); if (pg->pg_discovery_filter >= PG_FILTER_PORTAL && auth_portal_check(ag, &conn->conn_initiator_sa) != 0) {