Skip to content

Commit

Permalink
avoid possible null dereference when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurNicolas committed Apr 1, 2022
1 parent a4bcabb commit 8e956b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/overlay/OverlayManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ OverlayManagerImpl::connectToImpl(PeerBareAddress const& address,
CLOG_DEBUG(Overlay,
"Peer rejected - all outbound pending connections "
"taken: {}",
currentConnection->toString());
address.toString());
return false;
}
getPeerManager().update(address, PeerManager::BackOffUpdate::INCREASE);
Expand Down

0 comments on commit 8e956b6

Please sign in to comment.