Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: net/ssl/ssl_client_session_cache.cc

Issue 2729733002: Roll src/third_party/boringssl/src be2ee342d..a58baaf9e (Closed)
Patch Set: roll further Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/openssl_ssl_util.cc ('k') | third_party/boringssl/BUILD.generated_tests.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_client_session_cache.cc
diff --git a/net/ssl/ssl_client_session_cache.cc b/net/ssl/ssl_client_session_cache.cc
index d92bdea78cad284006d0d5a4903bfc987ed1e247..a21d680b1df7364bbdd03aab70e99a4d59f8390f 100644
--- a/net/ssl/ssl_client_session_cache.cc
+++ b/net/ssl/ssl_client_session_cache.cc
@@ -106,8 +106,11 @@ void SSLClientSessionCache::SetClockForTesting(
}
bool SSLClientSessionCache::IsExpired(SSL_SESSION* session, time_t now) {
- return now < SSL_SESSION_get_time(session) ||
- now >=
+ if (now < 0)
+ return true;
+ uint64_t now_u64 = static_cast<uint64_t>(now);
+ return now_u64 < SSL_SESSION_get_time(session) ||
+ now_u64 >=
SSL_SESSION_get_time(session) + SSL_SESSION_get_timeout(session);
}
« no previous file with comments | « net/ssl/openssl_ssl_util.cc ('k') | third_party/boringssl/BUILD.generated_tests.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698