aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-02 11:01:40 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-12-02 11:01:40 -0800
commit3e9ba863773962a2aef631334cd4511487c02f93 (patch)
tree5e603461afe220ae5644fca77de50bf83468fe40 /src
parent714038204a897c4eb7064686181b447f3dfa9da5 (diff)
parent8aa2f70f57b3c6c30264e4f1b5ddfaa9b7953f9f (diff)
Merge branch 'security_handshaker1' into security_handshaker2
Diffstat (limited to 'src')
-rw-r--r--src/core/ext/client_channel/http_connect_handshaker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ext/client_channel/http_connect_handshaker.c b/src/core/ext/client_channel/http_connect_handshaker.c
index e0b717dac5..572af52dfd 100644
--- a/src/core/ext/client_channel/http_connect_handshaker.c
+++ b/src/core/ext/client_channel/http_connect_handshaker.c
@@ -126,6 +126,9 @@ static void handshake_failed_locked(grpc_exec_ctx* exec_ctx,
// Not shutting down, so the handshake failed. Clean up before
// invoking the callback.
cleanup_args_for_failure_locked(handshaker);
+ // Set shutdown to true so that subsequent calls to
+ // http_connect_handshaker_shutdown() do nothing.
+ handshaker->shutdown = true;
}
// Invoke callback.
grpc_exec_ctx_sched(exec_ctx, handshaker->on_handshake_done, error, NULL);