]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: clean up attribute parsing state before ret
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 26 Nov 2019 19:42:40 +0000 (14:42 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 16 Jan 2020 19:36:52 +0000 (14:36 -0500)
commit7c2d8181b867ef79ffdeb077f03d80d211aae4ab
tree66e92f2edd285771af9d69bebcc683813e8a9906
parentff9c00d2d5fe0d934a3acaaca8e88c61119bbfdf
bgpd: clean up attribute parsing state before ret

Early exits without appropriate cleanup were causing obscure double
frees and other issues later on in the attribute parsing code. If we
return anything except a hard attribute parse error, we have cleanup and
refcounts to manage.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_attr.c