aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-01 08:24:45 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-12-01 08:24:45 -0800
commit412e6acaaa1ba26626eb8fe31508f7faeceaa1cf (patch)
tree71634bf937fc125e6477c094fd5725dd7ca3f1c0 /src/core/lib/security
parent86a893d52ea75cc490a88e97ce37e3e7ebfeb943 (diff)
parent53bd69330ca12c8d430997283402a50cbe307e2f (diff)
Merge branch 'security_handshaker1' into security_handshaker2
Diffstat (limited to 'src/core/lib/security')
-rw-r--r--src/core/lib/security/transport/security_handshaker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/security/transport/security_handshaker.c b/src/core/lib/security/transport/security_handshaker.c
index 964a692ae7..61144bf436 100644
--- a/src/core/lib/security/transport/security_handshaker.c
+++ b/src/core/lib/security/transport/security_handshaker.c
@@ -172,6 +172,9 @@ static void on_peer_checked(grpc_exec_ctx *exec_ctx, void *arg,
grpc_channel_args_destroy(tmp_args);
// Invoke callback.
grpc_exec_ctx_sched(exec_ctx, h->on_handshake_done, GRPC_ERROR_NONE, NULL);
+ // Set shutdown to true so that subsequent calls to
+ // security_handshaker_shutdown() do nothing.
+ h->shutdown = true;
done:
gpr_mu_unlock(&h->mu);
security_handshaker_unref(exec_ctx, h);