summaryrefslogtreecommitdiff
path: root/lib/lib_errors.h
diff options
context:
space:
mode:
authorFrancois Dumontet <francois.dumontet@6wind.com>2024-10-21 12:49:50 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-10-29 12:14:02 +0000
commit3de0e5e1c5fa8cc7ce7ae1b0c13ac41a712d89d5 (patch)
tree0b93b32c460e4cbeeac028bb77f1602b7d0c1a3e /lib/lib_errors.h
parente09ce80fb72d658d6a314bbbecfd72393dfcacca (diff)
bgpd: fix crash when polling bgp4v2PathAttrTable
we have (gdb) p *path->attr->aspath $1 = {refcnt = 3, segments = 0x0, json = 0x0, str = 0x55723d0b7470 "", str_len = 0, asnotation = ASNOTATION_PLAIN} It looks like this aspath is empty, resulting in a size 0 and NULL pointer for path->attr->aspath->segments which leads to the SIGSEGV fixe: return 0 when segments is null. Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com> (cherry picked from commit ee2f1b85cf95fcbfd0a54dc15b911f525e96b163)
Diffstat (limited to 'lib/lib_errors.h')
0 files changed, 0 insertions, 0 deletions