mirror of https://github.com/yandex/odyssey.git
odissey: fix config value read for discard
This commit is contained in:
parent
b83ba3eb0c
commit
f730945875
|
@ -371,7 +371,7 @@ od_configparse_route(od_config_t *config, od_token_t *name)
|
||||||
rc = od_confignext_yes_no(config, &tk);
|
rc = od_confignext_yes_no(config, &tk);
|
||||||
if (rc == -1)
|
if (rc == -1)
|
||||||
return -1;
|
return -1;
|
||||||
route->discard = tk->v.num;
|
route->discard = rc;
|
||||||
continue;
|
continue;
|
||||||
case OD_LEOF:
|
case OD_LEOF:
|
||||||
od_configerror(config, tk, "unexpected end of config file");
|
od_configerror(config, tk, "unexpected end of config file");
|
||||||
|
|
Loading…
Reference in New Issue