odissey: fix config value read for discard

This commit is contained in:
Dmitry Simonenko 2017-02-14 18:36:16 +03:00
parent b83ba3eb0c
commit f730945875
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ od_configparse_route(od_config_t *config, od_token_t *name)
rc = od_confignext_yes_no(config, &tk);
if (rc == -1)
return -1;
route->discard = tk->v.num;
route->discard = rc;
continue;
case OD_LEOF:
od_configerror(config, tk, "unexpected end of config file");