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

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

SSU2: Don't attempt SSU1 fallback validation on a SSU2 peer

This should actually fix the HMAC NPE
parent 03f315fc
No related branches found
No related tags found
No related merge requests found
...@@ -377,6 +377,8 @@ class PacketHandler { ...@@ -377,6 +377,8 @@ class PacketHandler {
PeerState state = null; PeerState state = null;
int newPort = remoteHost.getPort(); int newPort = remoteHost.getPort();
for (PeerState ps : peers) { for (PeerState ps : peers) {
if (ps.getVersion() > 1)
continue;
boolean valid = false; boolean valid = false;
if (_log.shouldLog(Log.WARN)) { if (_log.shouldLog(Log.WARN)) {
long now = _context.clock().now(); long now = _context.clock().now();
......
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