Skip to content
Snippets Groups Projects
Commit e1b97b60 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #557 from jboeuf/b542

Fixing memleak.
parents 7cffec1e 5882b53e
No related branches found
No related tags found
No related merge requests found
...@@ -349,11 +349,13 @@ static grpc_security_status ssl_channel_check_peer(grpc_security_context *ctx, ...@@ -349,11 +349,13 @@ static grpc_security_status ssl_channel_check_peer(grpc_security_context *ctx,
void *user_data) { void *user_data) {
grpc_ssl_channel_security_context *c = grpc_ssl_channel_security_context *c =
(grpc_ssl_channel_security_context *)ctx; (grpc_ssl_channel_security_context *)ctx;
grpc_security_status status = ssl_check_peer(c->overridden_target_name != NULL grpc_security_status status;
? c->overridden_target_name tsi_peer_destruct(&c->peer);
: c->target_name,
&peer);
c->peer = peer; c->peer = peer;
status = ssl_check_peer(c->overridden_target_name != NULL
? c->overridden_target_name
: c->target_name,
&peer);
return status; return status;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment