summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 15:39:43 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-11 15:39:43 -0800
commita096a74fa03cb7fa332bb3a96b648bf57c8c132a (patch)
tree3def1e21c11118e2636caa8ef2df54e4816e3bf2
parent32e0b13734d824510a7d75793e2a4b15e58062c9 (diff)
downloadvyatta-cfg-vpn-a096a74fa03cb7fa332bb3a96b648bf57c8c132a.tar.gz
vyatta-cfg-vpn-a096a74fa03cb7fa332bb3a96b648bf57c8c132a.zip
Fix use of unitialized value
Bug 4021 Don't die if local ip not configured.
-rwxr-xr-xscripts/vpn-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 0f6c206..4beba95 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -1163,7 +1163,7 @@ sub hasLocalWildcard {
$lip = $vcVPN->returnOrigValue(
"ipsec site-to-site peer $peer local-ip");
}
- return 1 if ($lip eq '0.0.0.0');
+ return 1 if ($lip && $lip eq '0.0.0.0');
}
return 0;
}