summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorpaul <paul>2005-05-19 01:50:11 +0000
committerpaul <paul>2005-05-19 01:50:11 +0000
commit72f75ae46957aa2758d19c086e98d7f5bde6d235 (patch)
treea7f293df6b4d80aa37b9775cec0f1bfbe0d91b27 /bgpd/bgp_fsm.c
parentf03347684abbf075cc10e5fee284a1e7d8ecd09e (diff)
downloadquagga-72f75ae46957aa2758d19c086e98d7f5bde6d235.tar.bz2
quagga-72f75ae46957aa2758d19c086e98d7f5bde6d235.tar.xz
2005-05-19 Paul Jakma <paul@dishone.st>
* bgp_fsm.c: (bgp_stop) use sockunion_free, not XFREE.. * bgp_network.c: (bgp_getsockname) ditto * bgp_routemap.c: (route_match_peer) ditto, als use a ret value and remove one sockunion_free. * bgpd.c: (peer_delete) ditto
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index c8ca4173..6368ff47 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -491,13 +491,13 @@ bgp_stop (struct peer *peer)
/* Connection information. */
if (peer->su_local)
{
- XFREE (MTYPE_SOCKUNION, peer->su_local);
+ sockunion_free (peer->su_local);
peer->su_local = NULL;
}
if (peer->su_remote)
{
- XFREE (MTYPE_SOCKUNION, peer->su_remote);
+ sockunion_free (peer->su_remote);
peer->su_remote = NULL;
}