Fix runtime listener creation

The "default" special keywords weren't removed.
This commit is contained in:
Markus Mäkelä 2019-05-21 18:34:31 +03:00
parent 17fa1ce616
commit 85a0cdf46c
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1057,6 +1057,16 @@ bool runtime_create_listener(Service* service,
proto = "mariadbclient";
}
if (auth && strcasecmp(auth, CN_DEFAULT) == 0)
{
// The protocol default authenticator is used
auth = nullptr;
}
if (auth_opt && strcasecmp(auth_opt, CN_DEFAULT) == 0)
{
auth_opt = nullptr;
}
MXS_CONFIG_PARAMETER params;
bool ok;
tie(ok, params) = load_defaults(proto, MODULE_PROTOCOL, CN_LISTENER);