-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey, everybody.


I just started downloading an FEC encoded splitfile inserted by Frost. My 
console starting filling with those paranoid CHK check errors. The 
splitfile inserted by Frost do not start with "freenet:" but directly with 
"CHK@". The attached patch will solve this problem... is it the right thing 
to do? Or is it a bug in Frost?


So long,
        David

- -- 
 * David 'Bombe' Roden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+LDgPsh8Hgp5TwkMRAqcpAJ9MPqKBA11MPRlKQboM4KgqCdisrQCgn1gx
Eg91T/b4Ak3CFAyM0Ozo1n8=
=fiii
-----END PGP SIGNATURE-----
Index: src/freenet/client/SplitFileRequestManager.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/SplitFileRequestManager.java,v
retrieving revision 1.7
diff -u -3 -p -r1.7 SplitFileRequestManager.java
--- src/freenet/client/SplitFileRequestManager.java	19 Jan 2003 07:37:25 -0000	1.7
+++ src/freenet/client/SplitFileRequestManager.java	20 Jan 2003 17:55:03 -0000
@@ -142,7 +142,7 @@ class SplitFileRequestManager extends Re
             if (success) {
                 ComputeCHKRequest r = (ComputeCHKRequest)req;
                 
-                if (!uri.equals(r.getURI().toString())) {
+                if (!uri.equals(r.getURI().toString()) && !(("freenet:" + uri).equals(r.getURI().toString()))) {
                         System.err.println("PARANOID CHK CHECK FAILED(1):");
                         System.err.println("   expected: " + uri);
                         System.err.println("   got:      " + r.getURI());
@@ -185,7 +185,7 @@ class SplitFileRequestManager extends Re
             if (success) {
                 ComputeCHKRequest r = (ComputeCHKRequest)req;
                 
-                if (parent.uri.equals(r.getURI().toString())) {
+                if (parent.uri.equals(r.getURI().toString()) || ("freenet:" + parent.uri).equals(r.getURI().toString())) {
 
                     
                     if (state == STATE_REQUESTING_BLOCKS) {

Reply via email to