From 5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 10 Jul 2026 11:15:52 +0100 Subject: Use saturating adds/subtracts when handling timestamps. --- modules/extra/ssl_openssl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/extra/ssl_openssl.cpp') 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)); } } -- cgit v1.3.1-10-gc9f91