ss_dassert(len > 0);

before gw_mysql_do_authentication()
This commit is contained in:
Massimiliano Pinto 2013-11-18 11:16:35 +01:00
parent 1c96824cb3
commit 0f120e5593

View File

@ -511,7 +511,11 @@ int gw_read_client_event(DCB* dcb) {
// example with consume, assuming one buffer only ...
queue = gw_buffer;
len = GWBUF_LENGTH(queue);
ss_dassert(len > 0);
auth_val = gw_mysql_do_authentication(dcb, queue);
// Data handled withot the dcb->func.write
// so consume it now
// be sure to consume it all