From: Arne Schwabe Date: Thu, 9 Jul 2020 10:16:03 +0000 (+0200) Subject: Code cleanup: remove superflous variable X-Git-Tag: v2.5_beta1~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca514800ca126b69dbde846db819d8bf4c490e68;p=thirdparty%2Fopenvpn.git 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 --- 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