summaryrefslogtreecommitdiffstats
path: root/iptables-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-model.lua')
-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