This is an automated email from the ASF dual-hosted git repository. scw00 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 0596eda Check nullptr before call netvc->do_io_close 0596eda is described below commit 0596edada988e937502c805f67c0c5ea22c9b5da Author: scw00 <sc...@apache.org> AuthorDate: Sat May 4 08:36:44 2019 +0000 Check nullptr before call netvc->do_io_close --- iocore/net/SSLNextProtocolAccept.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iocore/net/SSLNextProtocolAccept.cc b/iocore/net/SSLNextProtocolAccept.cc index cdcbf4a..ed3fc5a 100644 --- a/iocore/net/SSLNextProtocolAccept.cc +++ b/iocore/net/SSLNextProtocolAccept.cc @@ -139,7 +139,9 @@ SSLNextProtocolAccept::mainEvent(int event, void *edata) netvc->do_io_read(new SSLNextProtocolTrampoline(this, netvc->mutex), 0, this->buffer); return EVENT_CONT; default: - netvc->do_io_close(); + if (netvc) { + netvc->do_io_close(); + } return EVENT_DONE; } }