aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2018-08-24 18:23:58 -0700
committerGravatar GitHub <noreply@github.com>2018-08-24 18:23:58 -0700
commit98fd5a73c3bf1aa285f58932e76bfeaaf5766786 (patch)
tree8f3ae97c8a0f566ebfb296fcbb628cd2e39bcb46 /src/core
parent25e74668f630da5d303eae26f11d36e913703573 (diff)
parent71655cf48a09621a2cfcdd497e0804b6a452df7d (diff)
Merge pull request #16408 from nicolasnoble/fix-tsi-ssl-auth-context-reuse-string
Fixing the SSL_REUSE auth context string attribute.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/tsi/ssl_transport_security.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport_security.cc
index 3ff3557286..d6a72ada0d 100644
--- a/src/core/tsi/ssl_transport_security.cc
+++ b/src/core/tsi/ssl_transport_security.cc
@@ -1051,9 +1051,9 @@ static tsi_result ssl_handshaker_result_extract_peer(
}
const char* session_reused = SSL_session_reused(impl->ssl) ? "true" : "false";
- result = tsi_construct_string_peer_property(
+ result = tsi_construct_string_peer_property_from_cstring(
TSI_SSL_SESSION_REUSED_PEER_PROPERTY, session_reused,
- strlen(session_reused) + 1, &peer->properties[peer->property_count]);
+ &peer->properties[peer->property_count]);
if (result != TSI_OK) return result;
peer->property_count++;