diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-08-31 11:01:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-31 11:01:10 -0400 |
| commit | 030d2f0b8bd671cac091f965b8c3925e879ba3b0 (patch) | |
| tree | d024b7e8cf5083939ee97667f31ba13185d54bba | |
| parent | c4f761d8eae512b901369aa8962c588e202704f1 (diff) | |
| parent | bc81691247228ad14501b86afe63dff0daf96ab6 (diff) | |
Merge pull request #14322 from opensourcerouting/fix/revert_6f8c927b03c454aa309b84cefccc4faa31e0c03f
Revert "bgpd: Add peers back to peer hash when peer_xfer_conn fails"
| -rw-r--r-- | bgpd/bgp_fsm.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index df137b8d54..b0d2a8fe0e 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -2146,17 +2146,6 @@ bgp_establish(struct peer_connection *connection) peer = peer_xfer_conn(peer); if (!peer) { flog_err(EC_BGP_CONNECT, "%%Neighbor failed in xfer_conn"); - - /* - * A failure of peer_xfer_conn but not putting the peers - * back in the hash ends up with a situation where incoming - * connections are rejected, as that the peer is not found - * when a lookup is done - */ - (void)hash_get(peer->bgp->peerhash, peer, hash_alloc_intern); - if (other) - (void)hash_get(other->bgp->peerhash, other, - hash_alloc_intern); return BGP_FSM_FAILURE; } |
