]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Incorporate more review feedback
authorRobert Schulze <robert@clickhouse.com>
Wed, 19 Jun 2024 08:40:16 +0000 (08:40 +0000)
committerNeil Horman <nhorman@openssl.org>
Fri, 21 Jun 2024 11:57:56 +0000 (07:57 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24673)

ssl/ssl_local.h

index 3a96c6a1361bf564f69fd1c9d1a9cb5a80d78e0c..0d979ae7237a8856a33bfafca3e865d06eb3861e 100644 (file)
@@ -530,7 +530,6 @@ struct ssl_session_st {
      * certificate is not ok, we must remember the error for session reuse:
      */
     long verify_result;         /* only for servers */
-    CRYPTO_REF_COUNT references;
     OSSL_TIME timeout;
     OSSL_TIME time;
     OSSL_TIME calc_timeout;
@@ -572,9 +571,10 @@ struct ssl_session_st {
 
     /*
      * These are used to make removal of session-ids more efficient and to
-     * implement a maximum cache size.
+     * implement a maximum cache size. Access requires protection of ctx->lock.
      */
     struct ssl_session_st *prev, *next;
+    CRYPTO_REF_COUNT references;
 };
 
 /* Extended master secret support */