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

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

Ratchet: Fix NPE ratcheting IB NSR tagset

parent 788c72c3
No related branches found
No related tags found
No related merge requests found
2020-05-01 zzz
* Ratchet: Fix NPE ratcheting IB NSR tagset
2020-04-30 zzz
* i2ptunnel: Prevent changing enc type on running tunnel
* Ratchet: Error handling fixes
* Streaming: Westwood+ congestion control (ticket #2719)
 
......
......@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 14;
public final static long BUILD = 15;
/** for example "-test" */
public final static String EXTRA = "";
......
......@@ -450,9 +450,12 @@ class RatchetTagSet implements TagSetHandle {
int toTrim = 0;
int tagnum;
while ((tagnum = _sessionTags.keyAt(toTrim)) < tooOld) {
int kidx = _sessionKeys.indexOfKey(tagnum);
if (kidx >= 0)
_sessionKeys.removeAt(kidx);
if (_sessionKeys != null) {
// only for ES tagsets
int kidx = _sessionKeys.indexOfKey(tagnum);
if (kidx >= 0)
_sessionKeys.removeAt(kidx);
}
if (_lsnr != null)
_lsnr.expireTag(_sessionTags.valueAt(toTrim), this);
toTrim++;
......
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