ctld: Ports without a portal group are not dummy ports

The default implementation of is_dummy should return false.  Only
portal group ports should possibly return true.

PR:		293076
Reported by:	Ken J. Thomson <thomsonk@yandex.com>
Fixes:		6acc7afa34 ("ctld: Convert struct port to a hierarchy of C++ classes")
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D56524
This commit is contained in:
John Baldwin
2026-04-23 15:16:08 -04:00
parent 614ef71849
commit 3df5cc33d8
+1 -1
View File
@@ -269,7 +269,7 @@ struct port {
virtual struct auth_group *auth_group() const { return nullptr; } virtual struct auth_group *auth_group() const { return nullptr; }
virtual struct portal_group *portal_group() const { return nullptr; } virtual struct portal_group *portal_group() const { return nullptr; }
virtual bool is_dummy() const { return true; } virtual bool is_dummy() const { return false; }
virtual void clear_references(); virtual void clear_references();