diff --git a/src/shrpx_ssl.cc b/src/shrpx_ssl.cc index 1c62f707..06ecf7ef 100644 --- a/src/shrpx_ssl.cc +++ b/src/shrpx_ssl.cc @@ -148,7 +148,7 @@ namespace { int ticket_key_cb(SSL *ssl, unsigned char *key_name, unsigned char *iv, EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc) { auto handler = static_cast(SSL_get_app_data(ssl)); - auto ticket_keys = worker_config->ticket_keys; + const auto &ticket_keys = worker_config->ticket_keys; if (!ticket_keys) { // No ticket keys available.