Author: xor
Date: 2008-11-15 18:07:14 +0000 (Sat, 15 Nov 2008)
New Revision: 23603
Modified:
trunk/plugins/WoT/Identity.java
Log:
Fix setRequestURI(). byte[].equals() of course did not compare the content of
the arrays, sorry.
Modified: trunk/plugins/WoT/Identity.java
===================================================================
--- trunk/plugins/WoT/Identity.java 2008-11-15 18:06:09 UTC (rev 23602)
+++ trunk/plugins/WoT/Identity.java 2008-11-15 18:07:14 UTC (rev 23603)
@@ -624,7 +624,7 @@
* @throws InvalidParameterException if the given FreenetURI is neither
a SSK nor a USK
*/
protected synchronized void setRequestURI(FreenetURI newRequestURI)
throws InvalidParameterException {
- if(requestURI != null &&
newRequestURI.getRoutingKey().equals(requestURI.getRoutingKey()))
+ if(requestURI != null &&
newRequestURI.equalsKeypair(requestURI))
throw new InvalidParameterException("Cannot change the
request URI of an existing identity");
if(newRequestURI.getKeyType().equals("SSK")) newRequestURI =
newRequestURI.setKeyType("USK");
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs