Author: toad
Date: 2007-09-07 17:07:57 +0000 (Fri, 07 Sep 2007)
New Revision: 15004

Modified:
   trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
Log:
Doh

Modified: trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
===================================================================
--- trunk/freenet/src/freenet/node/IPDetectorPluginManager.java 2007-09-07 
17:00:03 UTC (rev 15003)
+++ trunk/freenet/src/freenet/node/IPDetectorPluginManager.java 2007-09-07 
17:07:57 UTC (rev 15004)
@@ -625,9 +625,9 @@
        public void registerPortForwardPlugin(FredPluginPortForward forward) {
                if(forward == null) throw new NullPointerException();
                synchronized(this) {
-                       FredPluginPortForward[] newForwardPlugins = new 
FredPluginPortForward[plugins.length+1];
-                       System.arraycopy(plugins, 0, newForwardPlugins, 0, 
plugins.length);
-                       newForwardPlugins[plugins.length] = forward;
+                       FredPluginPortForward[] newForwardPlugins = new 
FredPluginPortForward[portForwardPlugins.length+1];
+                       System.arraycopy(portForwardPlugins, 0, 
newForwardPlugins, 0, portForwardPlugins.length);
+                       newForwardPlugins[portForwardPlugins.length] = forward;
                        portForwardPlugins = newForwardPlugins;
                }
                if(logMINOR) Logger.minor(this, "Registering a new port forward 
plugin : " + forward);


Reply via email to