From 689e8c0ee370a1ee0a524ede39b3afaa8d79a456 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 8 Jan 2015 21:49:19 +0900 Subject: [PATCH] nghttpx: Don't copy ticket_keys std::shared_ptr --- src/shrpx_ssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.