git: 40dacfe45eee - stable/14 - rtadvd: Fix validation of the MTU parameter when parsing config
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Apr 2026 16:51:35 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=40dacfe45eeeec28fa62304e0e75abca90d726dd
commit 40dacfe45eeeec28fa62304e0e75abca90d726dd
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-04-01 12:14:24 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-04-16 16:48:50 +0000
rtadvd: Fix validation of the MTU parameter when parsing config
MFC after: 1 week
(cherry picked from commit 607f6be6ec19f49ff595226afe1c8aa6515c59a0)
---
usr.sbin/rtadvd/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c
index a264858edaf7..fc7fdea9142d 100644
--- a/usr.sbin/rtadvd/config.c
+++ b/usr.sbin/rtadvd/config.c
@@ -613,7 +613,7 @@ getconfig_free_pfx:
get_prefix(rai);
MAYHAVE(val64, "mtu", 0);
- if (val < 0 || val64 > 0xffffffff) {
+ if (val64 < 0 || val64 > 0xffffffff) {
syslog(LOG_ERR,
"<%s> mtu (%" PRIu64 ") on %s out of range",
__func__, val64, ifi->ifi_ifname);