Fix debug assertion

The GWBUF_IS_CONTIGUOUS macro changed in 2.4 and it no longer allows null
arguments.
This commit is contained in:
Markus Mäkelä 2019-12-13 07:07:41 +02:00
parent 90f7c69f9d
commit 2b56737868
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1021,7 +1021,7 @@ static int gw_read_and_write(DCB* dcb)
{
stmt = modutil_get_next_MySQL_packet(&read_buffer);
if (!GWBUF_IS_CONTIGUOUS(stmt))
if (stmt && !GWBUF_IS_CONTIGUOUS(stmt))
{
// Make sure the buffer is contiguous
stmt = gwbuf_make_contiguous(stmt);