Fix to NULL dcb in mysql_backend.c
This commit is contained in:
@ -623,9 +623,14 @@ static int gw_write_backend_event(DCB *dcb) {
|
|||||||
if (dcb->writeq != NULL)
|
if (dcb->writeq != NULL)
|
||||||
{
|
{
|
||||||
data = (uint8_t *)GWBUF_DATA(dcb->writeq);
|
data = (uint8_t *)GWBUF_DATA(dcb->writeq);
|
||||||
|
|
||||||
if (!(MYSQL_IS_COM_QUIT(data)))
|
if(dcb->session->client == NULL)
|
||||||
|
{
|
||||||
|
rc = 0;
|
||||||
|
}
|
||||||
|
else if (!(MYSQL_IS_COM_QUIT(data)))
|
||||||
{
|
{
|
||||||
|
|
||||||
/*< vraa : errorHandle */
|
/*< vraa : errorHandle */
|
||||||
mysql_send_custom_error(
|
mysql_send_custom_error(
|
||||||
dcb->session->client,
|
dcb->session->client,
|
||||||
|
Reference in New Issue
Block a user