Return 0 in nbi->expire when la_expire == 0. Conversion from time_uptime to

time_second should not be performed in this case.
This commit is contained in:
Hiroki Sato 2013-08-17 07:14:45 +00:00
parent 10966d45e9
commit 5a04191532

View file

@ -1508,7 +1508,11 @@ nd6_ioctl(u_long cmd, caddr_t data, struct ifnet *ifp)
nbi->state = ln->ln_state;
nbi->asked = ln->la_asked;
nbi->isrouter = ln->ln_router;
nbi->expire = ln->la_expire + (time_second - time_uptime);
if (ln->la_expire == 0)
nbi->expire = 0;
else
nbi->expire = ln->la_expire +
(time_second - time_uptime);
LLE_RUNLOCK(ln);
break;
}