Fix assertion on client SSL read
When SSL is enabled, the protocol seems to get zero byte reads which result in a null GWBUF being passed to gwbuf_length.
This commit is contained in:
@ -524,7 +524,13 @@ int gw_read_client_event(DCB* dcb)
|
|||||||
{
|
{
|
||||||
dcb_close(dcb);
|
dcb_close(dcb);
|
||||||
}
|
}
|
||||||
if (0 == (nbytes_read = gwbuf_length(read_buffer)))
|
|
||||||
|
if (read_buffer)
|
||||||
|
{
|
||||||
|
nbytes_read = gwbuf_length(read_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nbytes_read == 0)
|
||||||
{
|
{
|
||||||
return return_code;
|
return return_code;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user