Fix debug assertion
The GWBUF_IS_CONTIGUOUS macro changed in 2.4 and it no longer allows null arguments.
This commit is contained in:
parent
90f7c69f9d
commit
2b56737868
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user