diff --git a/apps/streaming/java/src/net/i2p/client/streaming/Packet.java b/apps/streaming/java/src/net/i2p/client/streaming/Packet.java index 61a7de96d5ecc5a69cd755295e666f2f2aa449f5..7a7a0a6c9f7f222778f823432bee7c10365f417a 100644 --- a/apps/streaming/java/src/net/i2p/client/streaming/Packet.java +++ b/apps/streaming/java/src/net/i2p/client/streaming/Packet.java @@ -530,6 +530,8 @@ public class Packet { public boolean verifySignature(I2PAppContext ctx, Destination from, byte buffer[]) { if (!isFlagSet(FLAG_SIGNATURE_INCLUDED)) return false; if (_optionSignature == null) return false; + // prevent receiveNewSyn() ... !active ... sendReset() ... verifySignature ... NPE + if (from == null) return false; int size = writtenSize();