Used normalized names in requires list

This commit is contained in:
Tom Eastep 2010-12-22 16:57:59 -08:00
parent a51eac91b0
commit 37a383ea4d

View File

@ -824,10 +824,13 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
# Handle actions # Handle actions
# #
if ( $actiontype & ACTION ) { if ( $actiontype & ACTION ) {
#
# Create the action:level:tag:param tupple.
#
$normalized_target = normalize_action( $basictarget, $loglevel, $param ); $normalized_target = normalize_action( $basictarget, $loglevel, $param );
if ( $inaction1 ) { if ( $inaction1 ) {
add_requiredby( $target , $inaction1 ); add_requiredby( $normalized_target , $inaction1 );
} else { } else {
if ( my $ref = use_action( $normalized_target ) ) { if ( my $ref = use_action( $normalized_target ) ) {
new_nat_chain $ref->{name} if $actiontype & ( NATRULE | NONAT ); new_nat_chain $ref->{name} if $actiontype & ( NATRULE | NONAT );