The minimum size of an RFC3442 destination descriptor is five bytes, so

correct test to -ge 5.  Without this change an RFC3442 encoded default
route would be ignored.

Reported by:	Cedric Jonas <cedric at decemplex dot net>
This commit is contained in:
emaste 2007-04-13 15:07:10 +00:00
parent 118c82a5e3
commit 761c2b3c1d

View File

@ -88,7 +88,7 @@ add_new_alias() {
fill_classless_routes() {
set $1
while [ $# -gt 5 ]; do
while [ $# -ge 5 ]; do
if [ $1 -eq 0 ]; then
route="default"
elif [ $1 -le 8 ]; then