From 49b6fb69ad709002d550cd6a606d80005c432651 Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Mon, 17 Oct 2016 13:13:07 -0700 Subject: [PATCH] TS-4970: Crash in INKVConnInternal when handle_event is called after destroy() --- proxy/InkAPI.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc index 578dcd46944..960458fa1c9 100644 --- a/proxy/InkAPI.cc +++ b/proxy/InkAPI.cc @@ -1045,7 +1045,7 @@ void INKVConnInternal::destroy() { m_deleted = 1; - if (m_deletable) { + if (m_deletable && this->mutex) { this->mutex = NULL; m_read_vio.set_continuation(NULL); m_write_vio.set_continuation(NULL); @@ -1058,7 +1058,7 @@ INKVConnInternal::handle_event(int event, void *edata) { handle_event_count(event); if (m_deleted) { - if (m_deletable) { + if (m_deletable && this->mutex) { this->mutex = NULL; m_read_vio.set_continuation(NULL); m_write_vio.set_continuation(NULL);