From 6bd81145e92a9407646e645aa5c977b3212e4605 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 5 Jun 2012 09:02:12 -0700 Subject: [PATCH] Fix single-line embedded Perl Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 8e5e68b7c..6625c513f 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2101,6 +2101,8 @@ sub embedded_perl( $ ) { fatal_error ( "Missing END PERL" ) unless $last; fatal_error ( "Invalid END PERL directive" ) unless $currentline =~ /^\s*$/; + } else { + $currentline = ''; } $embedded++;