Author: zothar
Date: 2008-01-09 02:42:36 +0000 (Wed, 09 Jan 2008)
New Revision: 16978

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
I believe this fixes the differential node reference related bug in parseARK()

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2008-01-09 02:20:04 UTC 
(rev 16977)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2008-01-09 02:42:36 UTC 
(rev 16978)
@@ -662,8 +662,7 @@
                                ark = new USK(ssk, arkNo);
                        } else if(forDiffNodeRef && arkPubKey == null && myARK 
!= null && arkNo != -1) {
                                // get the ARK URI from the previous ARK and 
the edition from the SFS
-                               FreenetURI uri = myARK.getURI();
-                               ClientSSK ssk = new ClientSSK(uri);
+                               ClientSSK ssk = myARK.getSSK(arkNo);
                                ark = new USK(ssk, arkNo);
                        } else if(forDiffNodeRef && arkPubKey != null && myARK 
!= null && arkNo != -1) {
                                // the SFS must contain an edition if it 
contains a arkPubKey


Reply via email to