I2NP: Enforce 4 bits for RI netdb type in DSM

to match current spec
This commit is contained in:
zzz committed 2026-05-10 16:40:32 -04:00
1 parent b48cb21119
commit fac0f85197
1 file changed
+1 -1
@@ -170,7 +170,7 @@ public class DatabaseStoreMessage extends FastI2NPMessageImpl {
} catch (IOException ioe) {
throw new I2NPMessageException("Error reading the leaseSet", ioe);
}
} else if ((dbType & 0x01) == DatabaseEntry.KEY_TYPE_ROUTERINFO) {
} else if (dbType == DatabaseEntry.KEY_TYPE_ROUTERINFO) {
_dbEntry = new RouterInfo();
int compressedSize = (int)DataHelper.fromLong(data, curIndex, 2);
curIndex += 2;