mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
bgpd: fix 2 more cases of length error reporting
* bgp_attr.c (bgp_attr_originator_id, bgp_attr_cluster_list): provide required arguments to bgp_attr_malformed()
This commit is contained in:
parent
b4cd242151
commit
267551879e
@ -1396,7 +1396,7 @@ bgp_attr_originator_id (struct peer *peer, bgp_size_t length,
|
|||||||
|
|
||||||
return bgp_attr_malformed (peer, BGP_ATTR_ORIGINATOR_ID, flag,
|
return bgp_attr_malformed (peer, BGP_ATTR_ORIGINATOR_ID, flag,
|
||||||
BGP_NOTIFY_UPDATE_ATTR_LENG_ERR,
|
BGP_NOTIFY_UPDATE_ATTR_LENG_ERR,
|
||||||
NULL, 0);
|
startp, total);
|
||||||
}
|
}
|
||||||
|
|
||||||
(bgp_attr_extra_get (attr))->originator_id.s_addr
|
(bgp_attr_extra_get (attr))->originator_id.s_addr
|
||||||
@ -1435,7 +1435,7 @@ bgp_attr_cluster_list (struct peer *peer, bgp_size_t length,
|
|||||||
|
|
||||||
return bgp_attr_malformed (peer, BGP_ATTR_CLUSTER_LIST, flag,
|
return bgp_attr_malformed (peer, BGP_ATTR_CLUSTER_LIST, flag,
|
||||||
BGP_NOTIFY_UPDATE_ATTR_LENG_ERR,
|
BGP_NOTIFY_UPDATE_ATTR_LENG_ERR,
|
||||||
NULL, 0);
|
startp, total);
|
||||||
}
|
}
|
||||||
|
|
||||||
(bgp_attr_extra_get (attr))->cluster
|
(bgp_attr_extra_get (attr))->cluster
|
||||||
|
Loading…
Reference in New Issue
Block a user