From 16a0458dbcb3bd86c8a89b01434f94346b562464 Mon Sep 17 00:00:00 2001 From: zmw12306 Date: Sat, 5 Apr 2025 15:24:06 -0400 Subject: [PATCH] babel: fix incorrect check in known_ae() The known_ae() function accepts AE values up to 4, but the RFC only defines AE values 0-3. Signed-off-by: zmw12306 --- babeld/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babeld/message.c b/babeld/message.c index 5a33d5c288..3d1dabce35 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -52,7 +52,7 @@ static const unsigned char tlv_min_length[MESSAGE_MAX + 1] = static bool known_ae(int ae) { - return ae <= 4; + return ae <= 3; } /* Parse a network prefix, encoded in the somewhat baroque compressed -- 2.39.5