Fix crash on KILL

Only backend DCBs should get processed by the callback.
This commit is contained in:
Markus Mäkelä 2018-10-19 11:38:55 +03:00
parent 0862c724d8
commit d89cfc1810
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1371,7 +1371,7 @@ static bool kill_func(DCB* dcb, void* data)
{
ConnKillInfo* info = static_cast<ConnKillInfo*>(data);
if (dcb->session->ses_id == info->target_id)
if (dcb->session->ses_id == info->target_id && dcb->dcb_role == DCB_ROLE_BACKEND_HANDLER)
{
MySQLProtocol* proto = (MySQLProtocol*)dcb->protocol;