Correct generation of '! --syn'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-03-11 08:43:04 -08:00
parent 4c72b3ee58
commit 76aef6cb04
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -4575,7 +4575,7 @@ sub do_proto( $$$;$ )
$output = "${invert}-p ${proto} ";
} else {
fatal_error '":syn" is only allowed with tcp' unless $proto == TCP && ! $invert;
$output = $notsyn ? "-p $proto ! --syn" : "-p $proto --syn ";
$output = $notsyn ? "-p $proto ! --syn " : "-p $proto --syn ";
}
fatal_error "SOURCE/DEST PORT(S) not allowed with PROTO !$pname" if $invert && ($ports ne '' || $sports ne '');