[freenet-cvs] r15110 - branches/freenet-jfk/src/freenet/node

kryptos at freenetproject.org kryptos at freenetproject.org
Mon Sep 10 05:00:08 UTC 2007


Author: kryptos
Date: 2007-09-10 05:00:08 +0000 (Mon, 10 Sep 2007)
New Revision: 15110

Modified:
   branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
Log:
Fixed an error-now branch compiles

Modified: branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
===================================================================
--- branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java	2007-09-10 04:56:29 UTC (rev 15109)
+++ branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java	2007-09-10 05:00:08 UTC (rev 15110)
@@ -714,17 +714,8 @@
 		if(logMINOR) Logger.minor(this, "Got a JFK(3) message, processing it");
 		// Get the authenticator,which is the latest entry into the cache
 		// It is basically a keyed hash(HMAC); size of output is that of the underlying hash function 
-		byte[] authenticator;
-		try{
-			// Intrinsic lock provided by the object authenticatorCache
-			synchronized(authenticatorCache){
-				authenticator = getBytes(authenticatorCache.get(nonceInitiator));
-			}
-		}
-		catch(IOException e){
-			Logger.error(this,"Error getting bytes");
-		}
-		byte[] Ni = iNonce();
+		byte[] authenticator = new byte[16];
+                byte[] Ni = iNonce();
 		byte[] Nr = rNonce();
 		byte[] DHExpi = Gi(pn);
 		byte[] DHExpr = Gr(pn);




More information about the cvs mailing list