From a81b5f69d5d5f099cb53c40f1c4a71162e8ab68c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 24 Jan 2012 21:34:15 +0000 Subject: Fixed bug in parsing tcp lines --- iptables-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3