Author: j16sdiz
Date: 2008-12-05 06:33:41 +0000 (Fri, 05 Dec 2008)
New Revision: 24057

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
bug 2761: ark.pubURI get extra edition number

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2008-12-04 23:25:53 UTC 
(rev 24056)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2008-12-05 06:33:41 UTC 
(rev 24057)
@@ -725,8 +725,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
-                               ClientSSK ssk = myARK.getSSK(arkNo);
-                               ark = new USK(ssk, arkNo);
+                               ark = myARK.copy(arkNo);
                        } else if(forDiffNodeRef && arkPubKey != null && myARK 
!= null && arkNo <= -1) {
                                // the SFS must contain an edition if it 
contains a arkPubKey
                                Logger.error(this, "Got a differential node 
reference from " + this + " with an arkPubKey but no ARK edition");

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to