summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-08-02 12:01:48 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-08-03 20:54:47 +0200
commit22632386acdb9b77a956c03f1115ffb4b358d409 (patch)
treeeb542700511d0c41b43ae189617a0ded8e5e2411 /bgpd
parentRevert "bgpd: Do not test against bdc again since we already validated" (diff)
downloadfrr-22632386acdb9b77a956c03f1115ffb4b358d409.tar.xz
frr-22632386acdb9b77a956c03f1115ffb4b358d409.zip
Revert "bgpd: Remove useless reuselist_node assignment before while loop"
This reverts commit 53048d33d124e60ce01ae6bf149ae03561930694.
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_damp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index 68bd6ad87..07c70d5aa 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -245,6 +245,7 @@ static int bgp_reuse_timer(struct thread *t)
* list head entry. */
assert(bdc->reuse_offset < bdc->reuse_list_size);
plist = bdc->reuse_list[bdc->reuse_offset];
+ node = SLIST_FIRST(&plist);
SLIST_INIT(&bdc->reuse_list[bdc->reuse_offset]);
/* 2. set offset = modulo reuse-list-size ( offset + 1 ), thereby