diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-12-20 09:48:43 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-12-20 09:48:43 +0200 |
| commit | af9aee79f996374868b4bd0c356e6c2267bcc4b2 (patch) | |
| tree | 860372b8858aa7f6fb9462c5aa934d7b5478f067 /ospf6d/ospf6_interface.c | |
| parent | 4f4728b6789b75858d9b2f1ba6ec0e423fc26cb8 (diff) | |
bgpd: Check if bgp_path_info is not NULL when setting AIGP metric TLV
*** CID 1530035: Null pointer dereferences (FORWARD_NULL)
/bgpd/bgp_updgrp_packet.c: 756 in subgroup_update_packet()
750 * position.
751 */
752 mpattr_pos = stream_get_endp(s);
753
754 /* 5: Encode all the attributes, except MP_REACH_NLRI
755 * attr. */
>>> CID 1530035: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "path" to "bgp_packet_attribute", which dereferences it.
756 total_attr_len = bgp_packet_attribute(
757 NULL, peer, s, adv->baa->attr, &vecarr, NULL,
758 afi, safi, from, NULL, NULL, 0, 0, 0, path);
759
760 space_remaining =
761 STREAM_CONCAT_REMAIN(s, snlri, STREAM_SIZE(s))
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
0 files changed, 0 insertions, 0 deletions
