From a7d9d42416c4c067f364a0565dc0f902c2943295 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 15 Jun 2021 08:36:19 +0000 Subject: [PATCH] get the uptime before comparing to it. "that seems kind of important" jmatthew@ --- sys/net/if_pfsync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.20.1