You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by su...@apache.org on 2015/09/28 23:04:49 UTC

trafficserver git commit: [TS-3592]: null pointer protection.

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 <su...@yahoo-inc.com>
Authored: Mon Sep 28 21:04:18 2015 +0000
Committer: Sudheer Vinukonda <su...@yahoo-inc.com>
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;