Merge pull request #1 from netfoundry/e2e-tls

don't crash if read_stop is not set
This commit is contained in:
Curt Tudor 2020-05-29 06:57:54 -07:00 committed by GitHub
commit 784379dcc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ int uv_link_read_start(uv_link_t* link) {
int uv_link_read_stop(uv_link_t* link) {
if (link == NULL)
return uv_link_error(link, UV_EFAULT);
CLOSE_WRAP(link->methods->read_stop(link));
if (NULL != link->methods->read_stop)
CLOSE_WRAP(link->methods->read_stop(link));
}