]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add missing RUnlock in ticketKeys
authorEdoardo Spadolini <edoardo.spadolini@gmail.com>
Fri, 26 Jul 2024 14:06:55 +0000 (14:06 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 20 Mar 2025 15:08:47 +0000 (08:08 -0700)
commitb1ec5ad00ae6ddf2e022a90432547a96292098f0
treecc82dda01ca0d7c4860f2994cc3ae17cd9a9db14
parentdc49aba8e41350ab039a23890fa987cfe6ddaa9c
crypto/tls: add missing RUnlock in ticketKeys

If GetConfigForClient returns a tls.Config that has
SessionTicketsDisabled set, the TLS server handshake currently leaves
the Config's internal RWMutex read locked after calculating the
ticketKeys to use for the handshake.

Change-Id: I07e450a0d2edda9e80f51fc2c20af633aa271684
GitHub-Last-Rev: 693d7acf952e9478708fe4cd69788f3115e6fe23
GitHub-Pull-Request: golang/go#68607
Reviewed-on: https://go-review.googlesource.com/c/go/+/601335
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/crypto/tls/common.go