Changeset 8480a204


Ignore:
Timestamp:
May 13, 2014 6:45:54 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e393f82
Parents:
197be5f
Message:
  • BOB, SAM, i2psnark: Fix datagram NPE (ticket #1275) This could only happen on an extremely overloaded router.
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • apps/BOB/src/net/i2p/BOB/UDPIOthread.java

    r197be5f r8480a204  
    107107                try {
    108108                        byte msg[] = session.receiveMessage(msgId);
    109                         out.write(msg);
    110                         out.flush();
     109                        if (msg != null) {
     110                                out.write(msg);
     111                                out.flush();
     112                        }
    111113                } catch (I2PSessionException ise) {
    112114                        up = false;
  • apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java

    r197be5f r8480a204  
    15371537        try {
    15381538            byte[] payload = session.receiveMessage(msgId);
     1539            if (payload == null)
     1540                return;
    15391541            _rxPkts.incrementAndGet();
    15401542            _rxBytes.addAndGet(payload.length);
  • apps/sam/java/src/net/i2p/sam/SAMMessageSession.java

    r197be5f r8480a204  
    235235            try {
    236236                byte msg[] = session.receiveMessage(msgId);
     237                if (msg == null)
     238                    return;
    237239                if (_log.shouldLog(Log.DEBUG)) {
    238240                    _log.debug("Content of message " + msgId + ":\n"
  • history.txt

    r197be5f r8480a204  
     12014-05-13 zzz
     2 * BOB, SAM, i2psnark: Fix datagram NPE (ticket #1275)
     3 * SusiMail: Fix AIOOBE (ticket #1269)
     4
    152014-05-10 zzz
    26 * NTCP: Fix NPE (ticket #996)
  • router/java/src/net/i2p/router/RouterVersion.java

    r197be5f r8480a204  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 17;
     21    public final static long BUILD = 18;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.