I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 29c827c0 authored by zzz's avatar zzz
Browse files

SSU2: Ignore dup session confirmed

parent 5582814d
No related branches found
No related tags found
No related merge requests found
...@@ -357,12 +357,15 @@ class OutboundEstablishState2 extends OutboundEstablishState implements SSU2Payl ...@@ -357,12 +357,15 @@ class OutboundEstablishState2 extends OutboundEstablishState implements SSU2Payl
} }
public synchronized void receiveSessionCreated(UDPPacket packet) throws GeneralSecurityException { public synchronized void receiveSessionCreated(UDPPacket packet) throws GeneralSecurityException {
////// todo fix state check if (_currentState != OutboundState.OB_STATE_REQUEST_SENT &&
if (_currentState == OutboundState.OB_STATE_VALIDATION_FAILED) { _currentState != OutboundState.OB_STATE_REQUEST_SENT_NEW_TOKEN) {
// ignore dups
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
_log.warn("Session created already failed"); _log.warn("Invalid state for session created: " + this);
return; return;
} }
if (_log.shouldDebug())
_log.debug("Received a session created on " + this);
DatagramPacket pkt = packet.getPacket(); DatagramPacket pkt = packet.getPacket();
SocketAddress from = pkt.getSocketAddress(); SocketAddress from = pkt.getSocketAddress();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment