Author: toad
Date: 2008-02-07 00:05:58 +0000 (Thu, 07 Feb 2008)
New Revision: 17633

Modified:
   trunk/freenet/src/freenet/store/SSKStore.java
Log:
Complain earlier if no pubkey found

Modified: trunk/freenet/src/freenet/store/SSKStore.java
===================================================================
--- trunk/freenet/src/freenet/store/SSKStore.java       2008-02-07 00:05:31 UTC 
(rev 17632)
+++ trunk/freenet/src/freenet/store/SSKStore.java       2008-02-07 00:05:58 UTC 
(rev 17633)
@@ -21,7 +21,8 @@
                if(fullKey == null) throw new SSKVerifyException("Need full key 
to reconstruct an SSK");
                NodeSSK key;
                key = NodeSSK.construct(fullKey);
-               key.grabPubkey(pubkeyCache);
+               if(!key.grabPubkey(pubkeyCache))
+                       throw new SSKVerifyException("No pubkey found");
                SSKBlock block = new SSKBlock(data, headers, key, false);
                return block;
        }


Reply via email to