From fa6c7ac0e614d45e983b6631d1f35413817c819c Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 23 Nov 2015 18:12:09 +0100 Subject: [PATCH] ocserv-fw: when called with --removeall exit immediately after action --- src/ocserv-fw | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ocserv-fw b/src/ocserv-fw index c02d03fe..64ade0af 100755 --- a/src/ocserv-fw +++ b/src/ocserv-fw @@ -7,6 +7,7 @@ COMMENT="ocserv-fw" if test "$1" = "--removeall";then eval "$(iptables -S | grep "comment ${COMMENT}" | sed -e 's/-A/-D/g' -e 's/^-/iptables -/g')" eval "$(ip6tables -S | grep "comment ${COMMENT}" | sed -e 's/-A/-D/g' -e 's/^-/ip6tables -/g')" + exit 0 fi if test "${REASON}" = "connect";then