diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-12-17 21:35:47 -0800 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-12-17 21:35:47 -0800 |
commit | 1d9ac6612d3a64f6598e69a4d41bdba6c01b6b2f (patch) | |
tree | 18556cb929c5a24904a5d5d19fa2ece8ce7b8543 /src/core/httpcli | |
parent | 5b194036b2f2a0a0368fb190b68da68267728d27 (diff) |
Removing the peer from the SSL security connector.
- Missing unit tests.
Diffstat (limited to 'src/core/httpcli')
-rw-r--r-- | src/core/httpcli/httpcli_security_connector.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/httpcli/httpcli_security_connector.c b/src/core/httpcli/httpcli_security_connector.c index 60c6cf6ac2..ba7cba25f9 100644 --- a/src/core/httpcli/httpcli_security_connector.c +++ b/src/core/httpcli/httpcli_security_connector.c @@ -84,7 +84,8 @@ static void httpcli_ssl_do_handshake(grpc_exec_ctx *exec_ctx, } static void httpcli_ssl_check_peer(grpc_exec_ctx *exec_ctx, - grpc_security_connector *sc, tsi_peer peer, + grpc_security_connector *sc, + tsi_peer peer, grpc_security_peer_check_cb cb, void *user_data) { grpc_httpcli_ssl_channel_security_connector *c = @@ -98,8 +99,8 @@ static void httpcli_ssl_check_peer(grpc_exec_ctx *exec_ctx, c->secure_peer_name); status = GRPC_SECURITY_ERROR; } - tsi_peer_destruct(&peer); cb(exec_ctx, user_data, status, NULL); + tsi_peer_destruct(&peer); } static grpc_security_connector_vtable httpcli_ssl_vtable = { |