]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_packet.c
bgpd: fix last_reset_cause setup
authorDavid Lamparter <equinox@diac24.net>
Wed, 24 Apr 2019 18:14:19 +0000 (20:14 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 3 Jul 2019 14:50:36 +0000 (16:50 +0200)
commit1a1f453436e912da77efe0f33d8651bead0a611b
tree3586ec41a91319ef949e650c0105cd326898967d
parent611349b99f64a9e39e9889a46ca3dde60f68484e
bgpd: fix last_reset_cause setup

last_reset_cause_size is the length *used* in last_reset_cause[].  It's
straight up used wrong here; we're saving off a reset cause and need to
check against the *available* size in last_reset_cause[].

This could actually have led to (hopefully rare) crashes in the assert
there, since the assert condition might fail incorrectly.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_packet.c
bgpd/bgpd.h