Author: j16sdiz
Date: 2009-04-06 06:00:23 +0000 (Mon, 06 Apr 2009)
New Revision: 26550

Modified:
   trunk/freenet/src/freenet/node/SecurityLevels.java
Log:
Fix security level change

Modified: trunk/freenet/src/freenet/node/SecurityLevels.java
===================================================================
--- trunk/freenet/src/freenet/node/SecurityLevels.java  2009-04-06 05:49:34 UTC 
(rev 26549)
+++ trunk/freenet/src/freenet/node/SecurityLevels.java  2009-04-06 06:00:23 UTC 
(rev 26550)
@@ -88,7 +88,7 @@
                        @Override
                        protected void setValue(String val) throws 
InvalidConfigValueException {
                                NETWORK_THREAT_LEVEL newValue = 
parseNetworkThreatLevel(val);
-                               if(newValue != null)
+                               if(newValue == null)
                                        throw new 
InvalidConfigValueException("Invalid value for network threat level: "+val);
                                synchronized(SecurityLevels.this) {
                                        networkThreatLevel = newValue;

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

Reply via email to