Revert "Remove redundant check."

This reverts commit 53dd13cf15.
This commit is contained in:
Tom Eastep 2011-12-27 13:01:27 -08:00
parent 1c2ab238a5
commit c5868ef6e4

View File

@ -76,6 +76,7 @@ sub process_notrack_rule( $$$$$$$ ) {
if ( $option eq 'helper' ) { if ( $option eq 'helper' ) {
fatal_error "Invalid helper' ($args)" if $args =~ /,/; fatal_error "Invalid helper' ($args)" if $args =~ /,/;
fatal_error "A protocol protocol is required in CT:helper rules" if $proto eq '-';
validate_helper( $args, $proto ); validate_helper( $args, $proto );
$action = "CT --helper $args"; $action = "CT --helper $args";
$exception_rule = do_proto( $proto, '-', '-' ); $exception_rule = do_proto( $proto, '-', '-' );