mysql_send_custom_error writes to client dcb but didn't check whether it was in the correct state.
This commit is contained in:
@ -749,7 +749,9 @@ mysql_send_custom_error (DCB *dcb, int packet_number, int in_affected_rows, cons
|
|||||||
|
|
||||||
GWBUF *buf = NULL;
|
GWBUF *buf = NULL;
|
||||||
|
|
||||||
if (dcb == NULL) {
|
if (dcb == NULL ||
|
||||||
|
dcb->state != DCB_STATE_POLLING)
|
||||||
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
ss_dassert(dcb != NULL);
|
ss_dassert(dcb != NULL);
|
||||||
|
Reference in New Issue
Block a user