Fix to MXS-417: https://mariadb.atlassian.net/browse/MXS-417 Added support for single-character wildcard in IP addresses.

Single character wildcard addresses are now properly handled
This commit is contained in:
Markus Makela
2015-10-20 11:56:17 +03:00
parent 42f5fe2485
commit 9cd327a783
3 changed files with 94 additions and 1 deletions

View File

@ -1463,6 +1463,10 @@ int gw_find_mysql_user_password_sha1(char *username, uint8_t *gateway_password,
memcpy(&key.ipv4, client, sizeof(struct sockaddr_in));
key.netmask = 32;
key.resource = client_data->db;
if(strlen(dcb->remote) < MYSQL_HOST_MAXLEN)
{
strcpy(key.hostname, dcb->remote);
}
LOGIF(LD,
(skygw_log_write_flush(