From f730945875a774fab61ed5d882d1fd48abae1422 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko Date: Tue, 14 Feb 2017 18:36:16 +0300 Subject: [PATCH] odissey: fix config value read for discard --- core/od_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/od_config.c b/core/od_config.c index cf0f9e3f..0b4408ae 100644 --- a/core/od_config.c +++ b/core/od_config.c @@ -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");