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:
parent
e5a49a2f7b
commit
76399200f4
@ -524,7 +524,13 @@ int gw_read_client_event(DCB* 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user