summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2007-04-13 15:07:10 +0000
committeremaste <emaste@FreeBSD.org>2007-04-13 15:07:10 +0000
commit761c2b3c1d82f4d43a29b3d212a0e33c18aa1d9a (patch)
tree9b0e19d04302ca797931aaaa1c2967530c1537fb /sbin
parent118c82a5e307929e000437e2dc67eed1855ab3de (diff)
downloadFreeBSD-src-761c2b3c1d82f4d43a29b3d212a0e33c18aa1d9a.zip
FreeBSD-src-761c2b3c1d82f4d43a29b3d212a0e33c18aa1d9a.tar.gz
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>
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/dhclient-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index 899cb6d..4284aaf 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
OpenPOWER on IntegriCloud