mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 20:13:53 +00:00
ospfd: catch and report runt LSAs
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
15c4dd82db
commit
53674eaba6
@ -1716,6 +1716,12 @@ static struct list *ospf_ls_upd_list_lsa(struct ospf_neighbor *nbr,
|
||||
break;
|
||||
}
|
||||
|
||||
if (length < OSPF_LSA_HEADER_SIZE) {
|
||||
flog_warn(EC_OSPF_PACKET,
|
||||
"Link State Update: LSA length too small.");
|
||||
break;
|
||||
}
|
||||
|
||||
/* Validate the LSA's LS checksum. */
|
||||
sum = lsah->checksum;
|
||||
if (!ospf_lsa_checksum_valid(lsah)) {
|
||||
|
Loading…
Reference in New Issue
Block a user