mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge 88840e04c2
into 3dd4d417be
This commit is contained in:
commit
b04d0dbc59
|
@ -7145,7 +7145,10 @@ int peer_password_unset(struct peer *peer)
|
|||
|
||||
/* Attempt to uninstall password on socket. */
|
||||
if (!BGP_CONNECTION_SU_UNSPEC(peer->connection))
|
||||
bgp_md5_unset(peer->connection);
|
||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_PASSWORD))
|
||||
bgp_md5_set(peer->connection);
|
||||
else
|
||||
bgp_md5_unset(peer->connection);
|
||||
/* Skip peer-group mechanics for regular peers. */
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue