log and javadoc tweaks

This commit is contained in:
zzz
2013-01-12 18:16:38 +00:00
parent 0c94680a45
commit c43a73e756
3 changed files with 12 additions and 4 deletions

View File

@ -47,9 +47,10 @@ class InboundEndpointProcessor {
public boolean retrievePreprocessedData(byte orig[], int offset, int length, Hash prev) {
Hash last = _config.getPeer(_config.getLength()-2);
if (!last.equals(prev)) {
// shouldn't happen now that we have good dup ID detection in BuildHandler
if (_log.shouldLog(Log.ERROR))
_log.error("Invalid previous peer - attempted hostile loop? from " + prev
+ ", expected " + last);
_log.error("Attempted IBEP injection from " + prev
+ ", expected " + last);
return false;
}