Correct types in do_ipsec()

This commit is contained in:
Tom Eastep 2010-08-19 15:33:49 -07:00
parent 6b0fa8b4e2
commit c80b1b3585

View File

@ -354,7 +354,7 @@ sub initialize( $ ) {
# #
# Current rules file section. # Current rules file section.
# #
$section = 'ESTABLISHED'; $section = '';
# #
# Contents of last COMMENT line. # Contents of last COMMENT line.
# #
@ -2691,11 +2691,11 @@ sub do_ipsec($) {
if ( @options == 1 ) { if ( @options == 1 ) {
if ( lc( $options[0] ) =~ /^(yes|ipsec)$/ ) { if ( lc( $options[0] ) =~ /^(yes|ipsec)$/ ) {
return do_ipsec_option $dir, 'ipsec', ''; return do_ipsec_options $dir, 'ipsec', '';
} }
if ( lc( $options[0] ) =~ /^(no|none)$/ ) { if ( lc( $options[0] ) =~ /^(no|none)$/ ) {
return do_ipsec_option $dir, 'ipsec', ''; return do_ipsec_options $dir, 'none', '';
} }
} }