Author: j16sdiz
Date: 2008-05-04 13:12:56 +0000 (Sun, 04 May 2008)
New Revision: 19736

Modified:
   
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
Log:
check for free block


Modified: 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
===================================================================
--- 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
    2008-05-04 13:12:36 UTC (rev 19735)
+++ 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
    2008-05-04 13:12:56 UTC (rev 19736)
@@ -286,6 +286,8 @@
                }

                public StorableBlock getStorableBlock(byte[] routingKey, byte[] 
fullKey) throws KeyVerifyException {
+                       if ((flag & ENTRY_FLAG_OCCUPIED) == 0)
+                               return null; // this is a free block
                        if (!decrypt(routingKey))
                                return null;



Reply via email to