Repository: trafficserver Updated Branches: refs/heads/master 9caf1d5c4 -> b9df2ebd6
[TS-3592]: null pointer protection. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b9df2ebd Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b9df2ebd Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b9df2ebd Branch: refs/heads/master Commit: b9df2ebd69bd132d23df4c34ab62f3a139f2f4ad Parents: 9caf1d5 Author: Sudheer Vinukonda <[email protected]> Authored: Mon Sep 28 21:04:18 2015 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Mon Sep 28 21:04:18 2015 +0000 ---------------------------------------------------------------------- iocore/net/SSLNetVConnection.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b9df2ebd/iocore/net/SSLNetVConnection.cc ---------------------------------------------------------------------- diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc index a543209..9497029 100644 --- a/iocore/net/SSLNetVConnection.cc +++ b/iocore/net/SSLNetVConnection.cc @@ -894,9 +894,11 @@ SSLNetVConnection::free(EThread *t) this->con.close(); flags = 0; SET_CONTINUATION_HANDLER(this, (SSLNetVConnHandler)&SSLNetVConnection::startEvent); - nh->read_ready_list.remove(this); - nh->write_ready_list.remove(this); - nh = NULL; + if (nh) { + nh->read_ready_list.remove(this); + nh->write_ready_list.remove(this); + nh = NULL; + } read.triggered = 0; write.triggered = 0; read.enabled = 0;
