ctld: Don't ignore pp/vp values of kernel ports with pp == 0 but vp != 0

Fixes:		c6f1e9b8a4 ("ctld: Simplify XML parsing memory management")
Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin
2026-05-27 16:56:39 -04:00
parent 40c846dc07
commit 7a436d3789
+1 -1
View File
@@ -549,7 +549,7 @@ conf_new_from_kernel(struct kports &kports)
continue;
std::string name = port.port_name;
if (port.pp != 0) {
if (port.pp != 0 || port.vp != 0) {
name += "/" + std::to_string(port.pp);
if (port.vp != 0)
name += "/" + std::to_string(port.vp);