summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-commit-push.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta-commit-push.pl b/scripts/vyatta-commit-push.pl
index 6e5752b..f66a5e4 100755
--- a/scripts/vyatta-commit-push.pl
+++ b/scripts/vyatta-commit-push.pl
@@ -74,6 +74,9 @@ my $source_address = $config->returnEffectiveValue('source-address');
if (defined($source_address)) {
print("Using source address $source_address\n");
}
+else {
+ $source_address = '';
+}
# The string needs to be wrapped in quotes, even if it's empty.
$source_address = '"' . $source_address . '"';