From 9f0d81ba560b9d19e4c31f5ae01b92521335b874 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 13 Apr 2007 15:07:10 +0000 Subject: [PATCH] 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 --- sbin/dhclient/dhclient-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index 899cb6de6a4b..4284aaf25480 100644 --- a/sbin/dhclient/dhclient-script +++ b/sbin/dhclient/dhclient-script @@ -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