forked from I2P_Developers/i2p.i2p
SSU2: Avoid rare NPE handling apparent session confirmed without inbound state
reported by drzed
This commit is contained in:
@@ -852,6 +852,11 @@ class PacketHandler {
|
||||
return false;
|
||||
}
|
||||
type = header.getType();
|
||||
if (type == SSU2Util.SESSION_CONFIRMED_FLAG_BYTE) {
|
||||
// one in a million decrypt of SSU 1 packet with type/version/netid all correct?
|
||||
// can't have session confirmed with null state, avoid NPE below
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
type = SSU2Util.SESSION_REQUEST_FLAG_BYTE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user