aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-11-08 16:46:02 -0800
committerGravatar yang-g <yangg@google.com>2016-11-08 16:46:02 -0800
commitfefb3caae4b9cc7bbdf411f7a0527b8497b60caa (patch)
treef2acd64a5893385f584c87312552c5612ccf9483 /test
parent55d2598ea56254109107bafa2de7c5a3f045e354 (diff)
shutdown is not needed with the changes to mock_ep
Diffstat (limited to 'test')
-rw-r--r--test/core/security/ssl_server_fuzzer.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/core/security/ssl_server_fuzzer.c b/test/core/security/ssl_server_fuzzer.c
index 09c8c54d67..04969765f5 100644
--- a/test/core/security/ssl_server_fuzzer.c
+++ b/test/core/security/ssl_server_fuzzer.c
@@ -119,12 +119,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
on_secure_handshake_done, &state);
grpc_exec_ctx_flush(&exec_ctx);
- bool mock_endpoint_shutdown = false;
// If the given string happens to be part of the correct client hello, the
// server will wait for more data. Explicitly fail the server by shutting down
// the endpoint.
if (!state.done_callback_called) {
- mock_endpoint_shutdown = true;
grpc_endpoint_shutdown(&exec_ctx, mock_endpoint);
grpc_exec_ctx_flush(&exec_ctx);
}
@@ -136,11 +134,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
grpc_slice_unref(cert_slice);
grpc_slice_unref(key_slice);
grpc_slice_unref(ca_slice);
- // grpc_endpoint_destroy has been called in handshake failure handling code.
- if (!mock_endpoint_shutdown) {
- grpc_endpoint_shutdown(&exec_ctx, mock_endpoint);
- grpc_exec_ctx_flush(&exec_ctx);
- }
grpc_exec_ctx_flush(&exec_ctx);
grpc_shutdown();