aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extra/ssl_openssl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-07-10 11:15:52 +0100
committerGravatar Sadie Powell2026-07-10 11:58:06 +0100
commit5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac (patch)
treea6d3d38e04f30b0906141f49d4e0fd643be1d0d9 /modules/extra/ssl_openssl.cpp
parentConvert TLS::IOHook::Status to an enum class. (diff)
Use saturating adds/subtracts when handling timestamps.
Diffstat (limited to 'modules/extra/ssl_openssl.cpp')
-rw-r--r--modules/extra/ssl_openssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/ssl_openssl.cpp b/modules/extra/ssl_openssl.cpp
index b8fcc9dde..7c8a5707a 100644
--- a/modules/extra/ssl_openssl.cpp
+++ b/modules/extra/ssl_openssl.cpp
@@ -523,7 +523,7 @@ namespace OpenSSL
if (expired != 0 && expired != 1)
{
this->error = FMT::format("Certificate expired {} ago (on {})",
- Duration::ToLongString(ServerInstance->Time() - this->expiration, true),
+ Duration::ToLongString(Time::Ago(this->expiration), true),
Time::ToString(this->expiration));
}
}