projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f6054
)
r2945 - newPortForwarding(): check value of the right variable
author
Denis Ovsienko
<infrastation@yandex.ru>
Tue, 14 Jul 2009 12:01:44 +0000
(12:01 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Tue, 14 Jul 2009 12:01:44 +0000
(12:01 +0000)
inc/database.php
patch
|
blob
|
blame
|
history
diff --git
a/inc/database.php
b/inc/database.php
index a8822ec9ba23e262d597e11cbe38a2be6bc5a068..670e34421895fa55eee84b7c1ee42c842c95ce6e 100644
(file)
--- a/
inc/database.php
+++ b/
inc/database.php
@@
-3174,7
+3174,7
@@
function newPortForwarding ($object_id, $localip, $localport, $remoteip, $remote
{
if (NULL === getIPv4AddressNetworkId ($localip))
return "$localip: Non existant ip";
- if (NULL === getIPv4AddressNetworkId ($
local
ip))
+ if (NULL === getIPv4AddressNetworkId ($
remote
ip))
return "$remoteip: Non existant ip";
if ( ($localport <= 0) or ($localport >= 65536) )
return "$localport: invaild port";