r2945 - newPortForwarding(): check value of the right variable
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 14 Jul 2009 12:01:44 +0000 (12:01 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 14 Jul 2009 12:01:44 +0000 (12:01 +0000)
inc/database.php

index a8822ec9ba23e262d597e11cbe38a2be6bc5a068..670e34421895fa55eee84b7c1ee42c842c95ce6e 100644 (file)
@@ -3174,7 +3174,7 @@ function newPortForwarding ($object_id, $localip, $localport, $remoteip, $remote
 {
        if (NULL === getIPv4AddressNetworkId ($localip))
                return "$localip: Non existant ip";
-       if (NULL === getIPv4AddressNetworkId ($localip))
+       if (NULL === getIPv4AddressNetworkId ($remoteip))
                return "$remoteip: Non existant ip";
        if ( ($localport <= 0) or ($localport >= 65536) )
                return "$localport: invaild port";