forked from I2P_Developers/i2p.i2p
fix rare NPE
This commit is contained in:
@@ -530,6 +530,8 @@ public class Packet {
|
|||||||
public boolean verifySignature(I2PAppContext ctx, Destination from, byte buffer[]) {
|
public boolean verifySignature(I2PAppContext ctx, Destination from, byte buffer[]) {
|
||||||
if (!isFlagSet(FLAG_SIGNATURE_INCLUDED)) return false;
|
if (!isFlagSet(FLAG_SIGNATURE_INCLUDED)) return false;
|
||||||
if (_optionSignature == null) return false;
|
if (_optionSignature == null) return false;
|
||||||
|
// prevent receiveNewSyn() ... !active ... sendReset() ... verifySignature ... NPE
|
||||||
|
if (from == null) return false;
|
||||||
|
|
||||||
int size = writtenSize();
|
int size = writtenSize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user