]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Revert "bgpd: Do not test against bdc again since we already validated"
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 2 Aug 2021 10:01:44 +0000 (13:01 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 3 Aug 2021 18:54:47 +0000 (21:54 +0300)
This reverts commit 63fc789a109cf5e086d7494cea7a9f516550839c.

bgpd/bgp_damp.c

index 2a372c0ba4b528f02a99606c4cef3a19d94dcf20..68bd6ad874b9abbee308b8c91fc043840c1dc29c 100644 (file)
@@ -787,7 +787,7 @@ const char *bgp_damp_reuse_time_vty(struct vty *vty, struct bgp_path_info *path,
 
        /* If dampening is not enabled or there is no dampening information,
           return immediately.  */
-       if (!bdi)
+       if (!bdc || !bdi)
                return NULL;
 
        /* Calculate new penalty.  */