]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix coverity issue on aspath_filter_exclude_acl 14455/head
authorFrancois Dumontet <francois.dumontet@6wind.com>
Wed, 20 Sep 2023 15:26:12 +0000 (17:26 +0200)
committerFrancois Dumontet <francois.dumontet@6wind.com>
Wed, 20 Sep 2023 17:22:58 +0000 (19:22 +0200)
commitc0b1105e78ed6e4eb3298ddef368279268da455a
tree9df93e82c656c1af7f57774661cc9bb3d1702ab6
parent0c9aabe76040dff04c76b127f92087236a623451
bgpd: fix coverity issue on aspath_filter_exclude_acl

CID 1566378 (#1-4 of 4): Use after free (USE_AFTER_FREE)76.
use_after_free: Using freed pointer cur_seg.

now the prev_seg pointer is set with always existaing values.

Link: https://scan7.scan.coverity.com/reports.htm#v39104/p13747/fileInstanceId=146858993&defectInstanceId=18968273&mergedDefectId=1566378&fileStart=1376&fileEnd=1625
Fixes: 4685db418e3a861205a28f975afeb9869f674337 (bgpd: add set as-path exclude acl-list command)
Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
bgpd/bgp_aspath.c