mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

This fixes an index out-of-bounds panic caused when using the embed package and the zap logger. When a TLS handshake error is logged, the slice for cert ip addresses is allocated with capacity but no length, so subsequent index access causes the panic, and doesn't surface the TLS handshake error to the user. Fixes #10932