summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-01-24 21:34:15 +0000
committerTed Trask <ttrask01@yahoo.com>2012-01-24 21:34:15 +0000
commita81b5f69d5d5f099cb53c40f1c4a71162e8ab68c (patch)
treeb9e9b37cb9decba847771163ffd40f8b881877f5
parentab447b48b4246d6bd9b117e5b1d6740e3b9be55d (diff)
downloadacf-iptables-a81b5f69d5d5f099cb53c40f1c4a71162e8ab68c.tar.bz2
acf-iptables-a81b5f69d5d5f099cb53c40f1c4a71162e8ab68c.tar.xz
Fixed bug in parsing tcp lines
-rw-r--r--iptables-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables-model.lua b/iptables-model.lua
index 9b23a79..5a1310a 100644
--- a/iptables-model.lua
+++ b/iptables-model.lua
@@ -451,7 +451,7 @@ function read_rule(tab, chain, pos)
retval.state.value = words[i+1]
i = i+1
elseif words[i] == "tcp" then
- while true do
+ while words[i+1] do
if string.match(words[i+1], "^spt") then
retval.tcp_sport.value = string.match(words[i+1], ":(.+)$")
i = i+1