mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-08-24 03:09:50 +00:00
Datagram: handle empty repliable datagram payload
Datagram 1, as allowed by spec. (from GH PR #164 by acetone)
This commit is contained in:
@@ -88,7 +88,9 @@ public final class I2PDatagramDissector {
|
||||
|
||||
// read payload
|
||||
rxPayloadLen = dgStream.read(rxPayload);
|
||||
|
||||
if (rxPayloadLen < 0)
|
||||
rxPayloadLen = 0;
|
||||
|
||||
// calculate the hash of the payload
|
||||
if (type == SigType.DSA_SHA1) {
|
||||
if (rxHash == null)
|
||||
|
||||
Reference in New Issue
Block a user