This commit is contained in:
VilhoRaatikka
2014-12-08 11:21:46 +02:00
parent 4c1ed65617
commit 7ed253ecae
2 changed files with 5 additions and 2 deletions

View File

@ -682,7 +682,8 @@ int gw_read_client_event(
int message_len = 25 + MYSQL_DATABASE_MAXLEN; int message_len = 25 + MYSQL_DATABASE_MAXLEN;
fail_str = calloc(1, message_len+1); fail_str = calloc(1, message_len+1);
snprintf(fail_str, message_len, "Unknown database '%s'", (char*)((MYSQL_session *)dcb->data)->db); snprintf(fail_str, message_len, "Unknown database '%s'",
(char*)((MYSQL_session *)dcb->data)->db);
modutil_send_mysql_err_packet(dcb, 2, 0, 1049, "42000", fail_str); modutil_send_mysql_err_packet(dcb, 2, 0, 1049, "42000", fail_str);
} else { } else {

View File

@ -1450,7 +1450,9 @@ int gw_find_mysql_user_password_sha1(char *username, uint8_t *gateway_password,
* (1) Check for localhost first: 127.0.0.1 (IPv4 only) * (1) Check for localhost first: 127.0.0.1 (IPv4 only)
*/ */
if ((key.ipv4.sin_addr.s_addr == 0x0100007F) && !dcb->service->localhost_match_wildcard_host) { if ((key.ipv4.sin_addr.s_addr == 0x0100007F) &&
!dcb->service->localhost_match_wildcard_host)
{
/* Skip the wildcard check and return 1 */ /* Skip the wildcard check and return 1 */
LOGIF(LE, LOGIF(LE,
(skygw_log_write_flush( (skygw_log_write_flush(