summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/ChangeLog2
-rw-r--r--bgpd/bgp_advertise.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index b80c7b20..3f0cad7d 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -11,6 +11,8 @@
(bgp_vty_init) Install show_bgp_memory_cmd.
* bgp_nexthop.h: Include if.h as a dependent header, for struct
connected.
+ * bgp_advertise.c: Use a distinct memory type for struct
+ bgp_synchronize.
2006-03-12 Paul Jakma <paul.jakma@sun.com>
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c
index 512ff05b..3a49ca85 100644
--- a/bgpd/bgp_advertise.c
+++ b/bgpd/bgp_advertise.c
@@ -383,7 +383,8 @@ bgp_sync_init (struct peer *peer)
for (afi = AFI_IP; afi < AFI_MAX; afi++)
for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++)
{
- sync = XCALLOC (MTYPE_TMP, sizeof (struct bgp_synchronize));
+ sync = XCALLOC (MTYPE_BGP_SYNCHRONISE,
+ sizeof (struct bgp_synchronize));
FIFO_INIT (&sync->update);
FIFO_INIT (&sync->withdraw);
FIFO_INIT (&sync->withdraw_low);