Fix "route add 0.0.0.0/0 <gateway>" to work properly. Shift count
authoryasuoka <yasuoka@openbsd.org>
Thu, 30 Aug 2018 01:32:53 +0000 (01:32 +0000)
committeryasuoka <yasuoka@openbsd.org>
Thu, 30 Aug 2018 01:32:53 +0000 (01:32 +0000)
commitc4a5da54af55556d57e139437c41d80ec44fa331
tree9abc06de6ffd1a4b143bf28473b7d908b4ffe071
parentbc291418bd6543934974fb489c40d1afb11c6ff1
Fix "route add 0.0.0.0/0 <gateway>" to work properly.  Shift count
beyonds the integer width results undefined behavior in C spec.
Actually the count is masked by 0x1f on amd64.  Found by asou at
soum.co.jp

ok claudio kn schwarze
sbin/route/route.c