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 <zmw12306@gmail.com>
This commit is contained in:
zmw12306 2025-04-05 15:24:06 -04:00
parent 44c4743e08
commit 16a0458dbc

View 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