Correct emitted code in 'setup_netfilter()'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5684 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-25 17:06:23 +00:00
parent 381d59995b
commit 6dc1c3027f

View File

@ -1430,9 +1430,13 @@ sub create_netfilter_load() {
emit_unindented '__EOF__' unless $state == CMD_STATE;
emit '';
if ( $slowstart ) {
emit ' exec 3>&-';
emit '';
emit 'iptables-restore < $TEMPFILE' if $slowstart;
}
emit 'if [ $? != 0 ]; then';
emit ' fatal_error "iptables-restore Failed"';
emit "fi\n";