Changeset cfc17d59


Ignore:
Timestamp:
Mar 12, 2011 4:08:52 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8e672ea
Parents:
46e8add1
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java

    r46e8add1 rcfc17d59  
    419419            // We are 2 hops in a row? Drop it without a reply.
    420420            // No way to recognize if we are every other hop, but see below
    421             _log.error("Dropping build request where we are in two consecutive hops");
     421            _log.error("Dropping build request, we the next hop");
    422422            return;
     423        }
     424        // previous test should be sufficient to keep it from getting here but maybe not?
     425        if (!isInGW) {
     426            Hash from = state.fromHash;
     427            if (from == null)
     428                from = state.from.calculateHash();
     429            if (_context.routerHash().equals(from)) {
     430                _log.error("Dropping build request, we are the previous hop");
     431                return;
     432            }
    423433        }
    424434        if ((!isOutEnd) && (!isInGW)) {
Note: See TracChangeset for help on using the changeset viewer.