diff options
author | Curt Tudor <curt@rentallect.com> | 2020-05-29 06:57:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 06:57:54 -0700 |
commit | 784379dcc3294b9682b625805187ac0fdd8a08f0 (patch) | |
tree | 626b28243ed3811626f9d913b7ea13fa0e4e0acc | |
parent | b3ae0767c8f5f72bfc381b935866f384205d912b (diff) | |
parent | 370b57625e5c4e39d27b715609317fe505fdb0e0 (diff) | |
download | uv_link_t-784379dcc3294b9682b625805187ac0fdd8a08f0.tar.gz |
Merge pull request #1 from netfoundry/e2e-tls
don't crash if read_stop is not set
-rw-r--r-- | src/uv_link_t.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uv_link_t.c b/src/uv_link_t.c index 32c676e..78ada82 100644 --- a/src/uv_link_t.c +++ b/src/uv_link_t.c @@ -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)); } |