summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-01-25 18:41:49 -0600
committerJohn Southworth <john.southworth@vyatta.com>2011-01-25 18:41:49 -0600
commitf0d04465680c1b9ddd58358e44fa1c2ae008f563 (patch)
treecee014fe2aa10673d8d00c3c74e01bf772ddd10e /scripts
parenteb2825d8ef7ad0d24aa935be36e67c3ac94f15f4 (diff)
downloadvyatta-cfg-vpn-f0d04465680c1b9ddd58358e44fa1c2ae008f563.tar.gz
vyatta-cfg-vpn-f0d04465680c1b9ddd58358e44fa1c2ae008f563.zip
Bugfix 6068. This fixes the given perl problem, however there may be more that appear. We should die when an error is found and stop processing the file
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vpn-config.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index fd986cd..a5428f0 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -420,6 +420,7 @@ if ( $vcVPN->exists('ipsec') ) {
if ( !defined($lip) || $lip eq "" ) {
$error = 1;
Vyatta::Config::outputError(["vpn","ipsec","site-to-site","peer",$peer,"local-ip"],"$vpn_cfg_err No local-ip specified for peer \"$peer\"\n");
+ exit(1); # this will fix the uninitilized $lip perl error but i think we need to do this after all error messages
} elsif ( $lip ne '0.0.0.0' ) {
# not '0.0.0.0' special case.