MXS-3019: Fix enum value validation
Also added a test case that reproduces the problem and verifies that it is fixed.
This commit is contained in:
@ -4535,6 +4535,10 @@ bool config_param_is_valid(const MXS_MODULE_PARAM* params,
|
||||
/** Either the only defined enum value is not valid
|
||||
* or multiple values were defined */
|
||||
valid = false;
|
||||
}
|
||||
|
||||
if (!valid)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user