Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
fefb3caa
Commit
fefb3caa
authored
8 years ago
by
yang-g
Browse files
Options
Downloads
Patches
Plain Diff
shutdown is not needed with the changes to mock_ep
parent
55d2598e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/core/security/ssl_server_fuzzer.c
+0
-7
0 additions, 7 deletions
test/core/security/ssl_server_fuzzer.c
with
0 additions
and
7 deletions
test/core/security/ssl_server_fuzzer.c
+
0
−
7
View file @
fefb3caa
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment