git: 0928867b4cc1 - stable/15 - tcpsso: fix the level error messages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Oct 2026 02:34:49 UTC
The branch stable/15 has been updated by maxim:
URL: https://cgit.FreeBSD.org/src/commit/?id=0928867b4cc1d3d40beb1053c64fa62ece37d8ee
commit 0928867b4cc1d3d40beb1053c64fa62ece37d8ee
Author: Maxim Konovalov <maxim@FreeBSD.org>
AuthorDate: 2026-10-16 21:29:17 +0000
Commit: Maxim Konovalov <maxim@FreeBSD.org>
CommitDate: 2026-10-30 02:33:15 +0000
tcpsso: fix the level error messages
tcpsso incorrectly referred to the optname instead of
the level name/number.
MFC after: 2 weeks
(cherry picked from commit c7cf285bb2069ff5adc3ca63dbdaf3deb0fe3aeb)
---
usr.sbin/tcpsso/tcpsso.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/usr.sbin/tcpsso/tcpsso.c b/usr.sbin/tcpsso/tcpsso.c
index 14ea71f9ebbd..8be417bf623b 100644
--- a/usr.sbin/tcpsso/tcpsso.c
+++ b/usr.sbin/tcpsso/tcpsso.c
@@ -301,12 +301,12 @@ create_parameters(char *level_str, char *optname_str, char *optval_str,
break;
}
if (so_levels[i].name == NULL)
- errx(1, "unsupported level %s", optname_str);
+ errx(1, "unsupported level %s", level_str);
} else {
if (arg < 0)
- errx(1, "level negative %s", optname_str);
+ errx(1, "level negative %s", level_str);
else if (arg > INT_MAX)
- errx(1, "level too large %s", optname_str);
+ errx(1, "level too large %s", level_str);
else
level = (int)arg;
}