r27056 - trunk/freenet/src/freenet/keys

[email protected] Sun, 19 Apr 2009 15:29:54 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-19 15:29:54 +0000 (Sun, 19 Apr 2009)
New Revision: 27056

Modified:
   trunk/freenet/src/freenet/keys/USK.java
Log:
Stronger test for edition in ssk (see r27001)

Modified: trunk/freenet/src/freenet/keys/USK.java
===================================================================
--- trunk/freenet/src/freenet/keys/USK.java	2009-04-19 15:29:15 UTC (rev 27055)
+++ trunk/freenet/src/freenet/keys/USK.java	2009-04-19 15:29:54 UTC (rev 27056)
@@ -84,6 +84,10 @@
 		this.siteName = ssk.docName;
 		this.suggestedEdition = myARKNumber;
 		this.cryptoAlgorithm = ssk.cryptoAlgorithm;
+
+		if (siteName.matches(".*\\-[0-9]+(\\/.*)?$"))	// not error -- just "possible" bug
+			Logger.normal(this, "POSSIBLE BUG: edition in ClientSSK " + ssk, new Exception("debug"));
+
 		hashCode = Fields.hashCode(pubKeyHash) ^ Fields.hashCode(cryptoKey) ^
 			siteName.hashCode() ^ (int)suggestedEdition ^ (int)(suggestedEdition >> 32);
 	}