From c5def76af3299fcd1b1f967a8b23709ac9a08b5d Mon Sep 17 00:00:00 2001 From: Yihua Zhang Date: Tue, 7 Jan 2020 15:52:12 -0800 Subject: [PATCH] increase peer property count due to sync with https://github.com/grpc/grpc/pull/21423/files --- src/core/tsi/ssl_transport_security.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport_security.cc index fafe6ca3c57..4da7035c24d 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/src/core/tsi/ssl_transport_security.cc @@ -1075,7 +1075,7 @@ static tsi_result ssl_handshaker_result_extract_peer( // the peer's certificate is not present in the stack STACK_OF(X509)* peer_chain = SSL_get_peer_cert_chain(impl->ssl); // 1 is for session reused property. - size_t new_property_count = peer->property_count + 2; + size_t new_property_count = peer->property_count + 3; if (alpn_selected != nullptr) new_property_count++; if (peer_chain != nullptr) new_property_count++; tsi_peer_property* new_properties = static_cast(