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

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

* NTCP: Hopefully fix race NPE, thx devzero

parent b64eff9b
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,9 @@ class Reader {
if (est.isComplete() && est.getExtraBytes() != null)
con.recvEncryptedI2NP(ByteBuffer.wrap(est.getExtraBytes()));
}
// catch race?
if (!con.isEstablished())
return;
while (!con.isClosed() && (buf = con.getNextReadBuf()) != null) {
// decrypt the data and push it into an i2np message
if (_log.shouldLog(Log.DEBUG))
......
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