git: d0f6c4ba5a13 - stable/15 - ctld: Don't ignore pp/vp values of kernel ports with pp == 0 but vp != 0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jun 2026 16:28:39 UTC
The branch stable/15 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=d0f6c4ba5a132089021b6a0dabf3c129afaba4d5
commit d0f6c4ba5a132089021b6a0dabf3c129afaba4d5
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-05-27 20:56:39 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-06-23 16:17:31 +0000
ctld: Don't ignore pp/vp values of kernel ports with pp == 0 but vp != 0
Fixes: c6f1e9b8a412 ("ctld: Simplify XML parsing memory management")
Sponsored by: Chelsio Communications
(cherry picked from commit 7a436d378951bedbdaa71d45bf236fb001323549)
---
usr.sbin/ctld/kernel.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/ctld/kernel.cc b/usr.sbin/ctld/kernel.cc
index d1210079ca1a..111c98e5026a 100644
--- a/usr.sbin/ctld/kernel.cc
+++ b/usr.sbin/ctld/kernel.cc
@@ -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);