Author: j16sdiz
Date: 2008-05-11 10:31:22 +0000 (Sun, 11 May 2008)
New Revision: 19892

Modified:
   
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
Log:
doh


Modified: 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
===================================================================
--- 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
    2008-05-11 10:24:22 UTC (rev 19891)
+++ 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
    2008-05-11 10:31:22 UTC (rev 19892)
@@ -343,7 +343,7 @@
                public ByteBuffer toByteBuffer() {
                        ByteBuffer out = ByteBuffer.allocate((int) 
entryTotalLength);
                        encrypt();
-                       out.put(digestedRoutingKey);
+                       out.put(getDigestedRoutingKey());
                        out.put(dataEncryptIV);

                        out.putLong(flag);
@@ -472,10 +472,9 @@
                }

                public byte[] getDigestedRoutingKey() {
-                       if (digestedRoutingKey != null)
-                               return digestedRoutingKey;
-                       else
-                               return 
SaltedHashFreenetStore.this.getDigestedRoutingKey(this.plainRoutingKey);
+                       if (digestedRoutingKey == null)
+                               digestedRoutingKey = 
SaltedHashFreenetStore.this.getDigestedRoutingKey(this.plainRoutingKey);
+                       return digestedRoutingKey;
                }
        }



Reply via email to