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:
Ed Maste 2007-04-13 15:07:10 +00:00
parent f0cbfcc468
commit 9f0d81ba56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168689

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