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
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index c8ca417..6368ff4 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -491,13 +491,13 @@
/* 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;
}