increase peer property count due to sync with https://github.com/grpc/grpc/pull/21423/files

pull/21215/head
Yihua Zhang 5 years ago
parent c8c284ed3a
commit c5def76af3
  1. 2
      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<tsi_peer_property*>(

Loading…
Cancel
Save