mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 20:13:02 -04:00
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:
parent
10966d45e9
commit
5a04191532
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue