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:
parent
118c82a5e3
commit
761c2b3c1d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user