1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

--skip-name-resolve=0 didn't work

custom code in `case OPT_SKIP_RESOLVE`
was overriding the correct value from handle_options().
This commit is contained in:
Sergei Golubchik
2022-12-12 13:18:46 +01:00
parent d78ac04ee6
commit ca23558a05
7 changed files with 12 additions and 21 deletions

View File

@ -887,7 +887,7 @@ int thd_set_peer_addr(THD *thd,
return 1; /* The error is set by my_strdup(). */
}
thd->main_security_ctx.host_or_ip = thd->main_security_ctx.ip;
if (!(specialflag & SPECIAL_NO_RESOLVE))
if (!opt_skip_name_resolve)
{
int rc;