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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user