Misc fixes for unitialised data reads

This commit is contained in:
Mark Riddoch
2013-06-27 01:56:30 +02:00
parent c1981b4dc6
commit 3b8ebfd215
10 changed files with 48 additions and 14 deletions

View File

@ -773,6 +773,7 @@ int gw_read_client_event(DCB* dcb) {
ROUTER *router_instance = NULL;
void *rsession = NULL;
MySQLProtocol *protocol = NULL;
//uint8_t buffer[MAX_BUFFER_SIZE] = "";
int b = -1;
if (dcb) {
@ -997,7 +998,7 @@ int gw_MySQLListener(DCB *listener, char *config_bind) {
char *p;
char address[1024]="";
int port=0;
int one;
int one = 1;
// this gateway, as default, will bind on port 4404 for localhost only
(config_bind != NULL) ? (bind_address_and_port = config_bind) : (bind_address_and_port = "127.0.0.1:4406");