From ca514800ca126b69dbde846db819d8bf4c490e68 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 9 Jul 2020 12:16:03 +0200 Subject: [PATCH] Code cleanup: remove superflous variable Signed-off-by: Arne Schwabe Acked-by: Antonio Quartulli Message-Id: <20200709101603.11941-8-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20252.html Signed-off-by: Gert Doering --- src/openvpn/ssl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index f3fe0ecf6..3420b0dd5 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -1231,11 +1231,10 @@ lame_duck_must_die(const struct tls_session *session, interval_t *wakeup) const struct key_state *lame = &session->key[KS_LAME_DUCK]; if (lame->state >= S_INITIAL) { - const time_t local_now = now; ASSERT(lame->must_die); /* a lame duck key must always have an expiration */ - if (local_now < lame->must_die) + if (now < lame->must_die) { - compute_earliest_wakeup(wakeup, lame->must_die - local_now); + compute_earliest_wakeup(wakeup, lame->must_die - now); return false; } else -- 2.47.2