Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
This commit is contained in:
@ -897,6 +897,10 @@ static void *uh_keydup(void* key) {
|
|||||||
MYSQL_USER_HOST *current_key = (MYSQL_USER_HOST *)key;
|
MYSQL_USER_HOST *current_key = (MYSQL_USER_HOST *)key;
|
||||||
|
|
||||||
if (key == NULL || rval == NULL || current_key == NULL || current_key->user == NULL) {
|
if (key == NULL || rval == NULL || current_key == NULL || current_key->user == NULL) {
|
||||||
|
if (rval) {
|
||||||
|
free(rval);
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -175,7 +175,7 @@ void gw_daemonize(void) {
|
|||||||
int
|
int
|
||||||
parse_bindconfig(char *config, unsigned short def_port, struct sockaddr_in *addr)
|
parse_bindconfig(char *config, unsigned short def_port, struct sockaddr_in *addr)
|
||||||
{
|
{
|
||||||
char *port, buf[1024];
|
char *port, buf[1024 + 1];
|
||||||
short pnum;
|
short pnum;
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user