]> git.puffer.fish Git - mirror/frr.git/commitdiff
babel: fix incorrect check in known_ae() 18585/head
authorzmw12306 <zmw12306@gmail.com>
Sat, 5 Apr 2025 19:24:06 +0000 (15:24 -0400)
committerzmw12306 <zmw12306@gmail.com>
Sat, 5 Apr 2025 19:24:06 +0000 (15:24 -0400)
The known_ae() function accepts AE values up to 4, but the RFC only defines AE values 0-3.

Signed-off-by: zmw12306 <zmw12306@gmail.com>
babeld/message.c

index 5a33d5c288ac6d6885143720f338ca99ba2f3e71..3d1dabce3513587f5f68768fee514cd24ca6a8f7 100644 (file)
@@ -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