mysql_send_custom_error writes to client dcb but didn't check whether it was in the correct state.

This commit is contained in:
vraatikka
2013-11-21 09:47:02 +02:00
parent a30e2ab29b
commit 4ed4419327

View File

@ -749,7 +749,9 @@ mysql_send_custom_error (DCB *dcb, int packet_number, int in_affected_rows, cons
GWBUF *buf = NULL;
if (dcb == NULL) {
if (dcb == NULL ||
dcb->state != DCB_STATE_POLLING)
{
return 0;
}
ss_dassert(dcb != NULL);