diff options
author | Robert Bays <rbays@moresby.vyatta.com> | 2008-03-10 23:32:51 -0700 |
---|---|---|
committer | Robert Bays <rbays@moresby.vyatta.com> | 2008-03-10 23:32:51 -0700 |
commit | f97e8ee8ac983a8f404e60f99693b6aed58837c9 (patch) | |
tree | f8dd2b5da6e92c7b5cc22285c1bf766170aa895a /scripts | |
parent | 456422fdc7c0cbe84ab837cba8f47270c0e75ad5 (diff) | |
download | vyatta-cfg-quagga-f97e8ee8ac983a8f404e60f99693b6aed58837c9.tar.gz vyatta-cfg-quagga-f97e8ee8ac983a8f404e60f99693b6aed58837c9.zip |
fix for bug 2713
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 059ce1a5..bf29a56e 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -36,6 +36,13 @@ sub check_peer_name() { print "malformed neighbor address $neighbor\n"; exit 1; } + + # Quagga treats the first byte as a potential IPv6 address + # so we can't use it as a peer group name. So let's check for it. + if (/^[A-Ga-g]{1,4}$/) { + print "malformed neighbor address $neighbor\n"; + exit 1; + } } # Make sure we aren't deleteing a peer-group that has |