From 91998009c45701cb74114dbf7ae3ea8dfde9ce79 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Fri, 4 Jun 2010 16:12:32 -0700 Subject: clean up potential unitialized var reference --- scripts/bgp/vyatta-bgp.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/bgp') diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 0e6f6f85..3ec975b2 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -1134,7 +1134,7 @@ sub check_for_peer_groups { foreach my $node (@neighbors) { my $peergroup = $config->returnValue("$node peer-group"); - if ( $peergroup eq $pg ) { push @peers, $node; } + if ((defined $peergroup) && ($peergroup eq $pg)) { push @peers, $node; } } # if we found peers in the previous statements -- cgit v1.2.3