dcb's fd wasn't stored to client's protocol structure. Changed mysql_protocol_init to take fd as the Second argument.

This commit is contained in:
vraatikka
2013-09-14 23:01:26 +03:00
parent 4815856017
commit db7004e6ae
4 changed files with 9 additions and 8 deletions

View File

@ -957,7 +957,7 @@ int gw_MySQLAccept(DCB *listener)
client_dcb->fd = c_sock;
client_dcb->remote = strdup(inet_ntoa(local.sin_addr));
protocol = mysql_protocol_init(client_dcb);
protocol = mysql_protocol_init(client_dcb, c_sock);
ss_dassert(protocol != NULL);
if (protocol == NULL) {