From 9f2f0ac0069441bc265ec4bdba814a89f5ef219d Mon Sep 17 00:00:00 2001 From: Massimiliano Pinto Date: Wed, 2 Oct 2013 15:42:55 +0200 Subject: [PATCH] session = dcb->session; was missing in the previous check in mysql_client.c:gw_read_client_event() --- server/modules/protocol/mysql_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/modules/protocol/mysql_client.c b/server/modules/protocol/mysql_client.c index 1b47d17c0..ccae0892b 100644 --- a/server/modules/protocol/mysql_client.c +++ b/server/modules/protocol/mysql_client.c @@ -556,6 +556,8 @@ int gw_read_client_event(DCB* dcb) { rc = 0; // get the backend session, if available, and close the session + session = dcb->session; + if (session != NULL) { CHK_SESSION(session); router = session->service->router;