forked from I2P_Developers/i2p.i2p
SSU2: Immediately fail session request containing zero token
i2pd will send this after retry with zero token and termination
This commit is contained in:
@@ -121,6 +121,8 @@ class InboundEstablishState2 extends InboundEstablishState implements SSU2Payloa
|
||||
(ENFORCE_TOKEN && !_transport.getEstablisher().isInboundTokenValid(_remoteHostId, token)))) {
|
||||
if (_log.shouldInfo())
|
||||
_log.info("Invalid token " + token + " in session request from: " + _aliceSocketAddress);
|
||||
if (token == 0)
|
||||
throw new GeneralSecurityException("Zero token in session request from: " + _aliceSocketAddress);
|
||||
_currentState = InboundState.IB_STATE_REQUEST_BAD_TOKEN_RECEIVED;
|
||||
_sendHeaderEncryptKey2 = introKey;
|
||||
// Generate token for the retry.
|
||||
|
||||
Reference in New Issue
Block a user