mirror of
https://github.com/XTLS/REALITY.git
synced 2026-09-27 09:28:06 +03:00
crypto/tls: make deleting a missing session cache key a no-op
lruSessionCache.Put is documented to remove the entry for sessionKey when cs is nil, but it only did so if the key was already in the cache. Otherwise it inserted an entry with a nil state, evicting the least recently used entry if the cache was full. Fixes #79861 Change-Id: Ie9abd6921a1a949f3fa796b63a235790fa42fb87 GitHub-Last-Rev: db2c9b9 GitHub-Pull-Request: #81042 Reviewed-on: https://go-review.googlesource.com/c/go/+/819960 Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Filippo Valsorda <filippo@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Reference in New Issue
Block a user