mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 13:31:48 +00:00
bgpd: free notify packet after writing
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
bea0122657
commit
3735936bda
@ -514,6 +514,7 @@ static int bgp_write_notify(struct peer *peer)
|
||||
/* only connection reset/close gets counted as TCP_fatal_error, failure
|
||||
* to write the entire NOTIFY doesn't get different FSM treatment */
|
||||
if (ret <= 0) {
|
||||
stream_free(s);
|
||||
BGP_EVENT_ADD(peer, TCP_fatal_error);
|
||||
return 0;
|
||||
}
|
||||
@ -543,6 +544,8 @@ static int bgp_write_notify(struct peer *peer)
|
||||
Connect instead of Idle */
|
||||
BGP_EVENT_ADD(peer, BGP_Stop);
|
||||
|
||||
stream_free(s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user