Author: toad
Date: 2007-12-19 16:25:58 +0000 (Wed, 19 Dec 2007)
New Revision: 16718

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Fix expectedLength.

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-12-19 
16:15:23 UTC (rev 16717)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-12-19 
16:25:58 UTC (rev 16718)
@@ -1217,8 +1217,7 @@

                final int expectedLength =      HASH_LENGTH + // HMAC of the 
cyphertext
                                                                        
(c.getBlockSize() >> 3) + // IV
-                                                                       
HASH_LENGTH + // the signature
-                                                                       
pn.jfkMyRef.length                        // the bootid + mynoderef
+                                                                       
HASH_LENGTH // the signature
                                                                        ;
                if(payload.length < expectedLength + 3) {
                        Logger.error(this, "Packet too short from 
"+pn.getPeer()+": "+payload.length+" after decryption in JFK(4), should be 
"+(expectedLength + 3));


Reply via email to