diff --git a/server/modules/authenticator/MySQLAuth/dbusers.c b/server/modules/authenticator/MySQLAuth/dbusers.c index 354109478..8f450f6a8 100644 --- a/server/modules/authenticator/MySQLAuth/dbusers.c +++ b/server/modules/authenticator/MySQLAuth/dbusers.c @@ -698,15 +698,11 @@ static bool get_hostname(DCB *dcb, char *client_hostname, size_t size) NI_NAMEREQD); // Text address only freeaddrinfo(ai); - if (lookup_result != 0) + if (lookup_result != 0 && lookup_result != EAI_NONAME) { MXS_ERROR("Client hostname lookup failed for '%s', getnameinfo() returned: '%s'.", dcb->remote, gai_strerror(lookup_result)); } - else - { - MXS_DEBUG("IP-lookup success, hostname is: '%s'", client_hostname); - } return lookup_result == 0; }