Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gossip: Fix connection leak when spoofing detected
In gossip, when a peer sends a message to a remote peer, it specifies its PKI-ID in order for the layers above the comm layer to be sure the peer on the other side has the identity that the current peer thinks the peer on the other side has. In case the handshake succeeds, but the PKI-ID of the remote peer is detected to be different than the expected PKI-ID, the connection creation attempt aborts but it doesn't close the gRPC connection- which leads to a connection leak. Change-Id: Ic8d247ccbc02da3018a27770cffa5173c76a6ae4 Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
- Loading branch information