git: 0361497268a5 - stable/15 - rtadvd: Fix validation of the MTU parameter when parsing config
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Apr 2026 02:54:56 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0361497268a51c565ff335f102690dd8ccad4546
commit 0361497268a51c565ff335f102690dd8ccad4546
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-04-01 12:14:24 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-04-13 02:53:05 +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 1b37d53c8b91..628ca3be886f 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);