2005-11-03 Paul Jakma <paul.jakma@sun.com>

	* bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
	  the struct bgp_damp_info, no need to guess by using
	  bgp_get_default().
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index d83c345..eadd07f 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-03 Paul Jakma <paul.jakma@sun.com>
+
+	* bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
+	  the struct bgp_damp_info, no need to guess by using
+	  bgp_get_default().
+
 2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
 	* bgp_vty.c: (bgp_config_write_redistribute) Use new library function
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index 93f1995..a2163a4 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -112,16 +112,11 @@
   struct bgp_damp_info *bdi;
   struct bgp_damp_info *next;
   time_t t_now, t_diff;
-  struct bgp *bgp;
-  
+    
   damp->t_reuse = NULL;
   damp->t_reuse =
     thread_add_timer (master, bgp_reuse_timer, NULL, DELTA_REUSE);
 
-  bgp = bgp_get_default ();
-  if (! bgp)
-    return 0;
-
   t_now = time (NULL);
 
   /* 1.  save a pointer to the current zeroth queue head and zero the
@@ -136,6 +131,8 @@
   /* 3. if ( the saved list head pointer is non-empty ) */
   for (; bdi; bdi = next)
     {
+      struct bgp *bgp = bdi->binfo->peer->bgp;
+      
       next = bdi->next;
 
       /* Set t-diff = t-now - t-updated.  */