mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
tcpsso: fix the level error messages
tcpsso incorrectly referred to the optname instead of the level name/number. MFC after: 2 weeks
This commit is contained in:
1 parent
d7cf2e714e
commit
c7cf285bb2
1 file changed
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user