diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2021-06-15 08:36:20 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2021-06-15 08:36:20 +0000 |
commit | c3e3744b9fb2ac824ef1fcfcfc42f554bb8d4d19 (patch) | |
tree | 7c003d052d690d62306088af3908085c7249630a /sys/net/if_pfsync.c | |
parent | 90a41055efe28fbe8cb6140d2b7fce08837b237e (diff) |
get the uptime before comparing to it.
"that seems kind of important" jmatthew@
Diffstat (limited to 'sys/net/if_pfsync.c')
-rw-r--r-- | sys/net/if_pfsync.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 4f062f1c02e..daecd55d830 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.290 2021/06/15 05:06:24 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.291 2021/06/15 08:36:19 dlg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -2066,6 +2066,8 @@ pfsync_deferrals_tmo(void *arg) struct timeval now, tv; struct pfsync_deferrals pds = TAILQ_HEAD_INITIALIZER(pds); + getmicrouptime(&now); + mtx_enter(&sc->sc_deferrals_mtx); for (;;) { pd = TAILQ_FIRST(&sc->sc_deferrals); |