From 26440a0301b0c3e63f9a9e489e08d16f30b38a2e Mon Sep 17 00:00:00 2001 From: Gaurav Sinha Date: Mon, 9 Jan 2012 11:02:15 -0800 Subject: bug 7714: Fixing runtime script error seen in show dns forwarding statistics --- scripts/vyatta-op-dns-forwarding.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3