summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_network.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-08 01:54:07 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-08 02:55:52 +0200
commitcc4d4ce8229d6107599eb42d4f646eddbea5ddc7 (patch)
tree05ab2232b611932f2e422f417e7c149f7dbed761 /bgpd/bgp_network.c
parentbgpd: Add ability to dump the bgp peerhash (diff)
downloadfrr-cc4d4ce8229d6107599eb42d4f646eddbea5ddc7.tar.xz
frr-cc4d4ce8229d6107599eb42d4f646eddbea5ddc7.zip
bgpd: Cleanup peer->su handling
Cleanup calls where we were passing in the su for peer creation a tiny bit. Creating a peer from the cli will always have a conf_if *or* a su but not both. While a doppelganger will have both. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_network.c')
-rw-r--r--bgpd/bgp_network.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index d56fdd75c..191b1641b 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -406,7 +406,6 @@ static int bgp_accept(struct thread *thread)
peer = peer_create(&su, peer1->conf_if, peer1->bgp, peer1->local_as,
peer1->as, peer1->as_type, 0, 0, NULL);
- peer->su = su;
hash_release(peer->bgp->peerhash, peer);
hash_get(peer->bgp->peerhash, peer, hash_alloc_intern);