]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_damp.c
Merge pull request #2372 from gromit1811/pim-comment-fix
[mirror_frr.git] / bgpd / bgp_damp.c
index 1ed557e07494e98d0d763cc1b2ce822ec551f316..bce6056ded4adaae98f71431e86ebcffd618ccfb 100644 (file)
@@ -233,7 +233,7 @@ int bgp_damp_withdraw(struct bgp_info *binfo, struct bgp_node *rn, afi_t afi,
        /* Remove the route from a reuse list if it is on one.  */
        if (CHECK_FLAG(bdi->binfo->flags, BGP_INFO_DAMPED)) {
                /* If decay rate isn't equal to 0, reinsert brn. */
-               if (bdi->penalty != last_penalty) {
+               if (bdi->penalty != last_penalty && bdi->index >= 0) {
                        bgp_reuse_list_delete(bdi);
                        bgp_reuse_list_add(bdi);
                }