summaryrefslogtreecommitdiff
path: root/scripts/vyatta-op-dns-forwarding.pl
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-01-09 11:02:15 -0800
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-01-09 11:02:15 -0800
commit26440a0301b0c3e63f9a9e489e08d16f30b38a2e (patch)
treeb180ca08c0d78ad7e2150ca3015775fd5ca4bc7c /scripts/vyatta-op-dns-forwarding.pl
parent73a7375d317a744c4df80e2b91a49a74bc1e1821 (diff)
downloadvyatta-op-26440a0301b0c3e63f9a9e489e08d16f30b38a2e.tar.gz
vyatta-op-26440a0301b0c3e63f9a9e489e08d16f30b38a2e.zip
bug 7714: Fixing runtime script error seen in show dns forwarding statistics
Diffstat (limited to 'scripts/vyatta-op-dns-forwarding.pl')
-rwxr-xr-xscripts/vyatta-op-dns-forwarding.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-op-dns-forwarding.pl b/scripts/vyatta-op-dns-forwarding.pl
index a20cf45..dc5fbf1 100755
--- a/scripts/vyatta-op-dns-forwarding.pl
+++ b/scripts/vyatta-op-dns-forwarding.pl
@@ -105,7 +105,9 @@ sub get_nameserver_stats {
$show_stats_output .= "Server: $nameserver\nQueries sent: $queries_sent\nQueries retried or failed: $queries_retried_failed\n\n";
}
}
- $show_stats_output .= $show_stats_overrides;
+ if (defined($show_stats_overrides)) {
+ $show_stats_output .= $show_stats_overrides;
+ }
}
sub print_stats {