From 40f67286f7e271ca2f66fb2a3680d30e33913ec3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 29 Nov 2022 09:00:39 -0500 Subject: [PATCH] bgpd: peer creation now takes care of the su At some point in the past the peer creation was not properly setting the su and the code had the release and re-add when setting the su. Since peer_create got a bit of code to handle the su properly the need to release then add it back in is negated so remove the code. Signed-off-by: Donald Sharp --- bgpd/bgp_network.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index b43f8c8664..fa618232f6 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -554,8 +554,6 @@ static void bgp_accept(struct thread *thread) peer = peer_create(&su, peer1->conf_if, peer1->bgp, peer1->local_as, peer1->as, peer1->as_type, NULL); - hash_release(peer->bgp->peerhash, peer); - (void)hash_get(peer->bgp->peerhash, peer, hash_alloc_intern); peer_xfer_config(peer, peer1); bgp_peer_gr_flags_update(peer);