mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-19 12:42:42 +02:00
BUG/MINOR: ot: fixed wrong NULL check in flt_ot_parse_cfg_group()
After calling flt_ot_conf_group_init() and storing the result in flt_ot_current_group, the code incorrectly checked flt_ot_current_config for NULL instead of the newly assigned flt_ot_current_group. This meant a failed group init was never detected and the error path was never taken.
This commit is contained in:
parent
9fa34e592a
commit
124e32ad78
@ -640,7 +640,7 @@ static int flt_ot_parse_cfg_group(const char *file, int linenum, char **args, in
|
||||
|
||||
if (pdata->keyword == FLT_OT_PARSE_GROUP_ID) {
|
||||
flt_ot_current_group = flt_ot_conf_group_init(args[1], linenum, &(flt_ot_current_config->groups), &err);
|
||||
if (flt_ot_current_config == NULL)
|
||||
if (flt_ot_current_group == NULL)
|
||||
retval |= ERR_ABORT | ERR_ALERT;
|
||||
}
|
||||
else if (pdata->keyword == FLT_OT_PARSE_GROUP_SCOPES) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user