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:
@@ -269,7 +269,7 @@ struct port {
|
||||
virtual struct auth_group *auth_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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user