From 50e25ac464e14e1f2ed988263ff8985de20644d3 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 15 Oct 2017 22:03:26 +0200 Subject: [PATCH] bugfix for parsing netem configuration --- lib/kernel/tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kernel/tc.c b/lib/kernel/tc.c index 311aefb26..2bcbbb7ce 100644 --- a/lib/kernel/tc.c +++ b/lib/kernel/tc.c @@ -50,7 +50,6 @@ int tc_parse(struct rtnl_qdisc **netem, json_t *cfg) json_error_t err; - ret = json_unpack_ex(cfg, &err, 0, "{ s?: s, s?: i, s?: i, s?: i, s?: i, s?: i, s?: i }", "distribution", &cfg_distribution, "limit", &cfg_limit, "delay", &cfg_delay, @@ -58,6 +57,7 @@ int tc_parse(struct rtnl_qdisc **netem, json_t *cfg) "loss", &cfg_loss, "duplicate", &cfg_duplicate, "corruption", &cfg_corruption + ret = json_unpack_ex(cfg, &err, 0, "{ s?: o, s?: o, s?: o, s?: o, s?: o, s?: o, s?: o }", ); if (ret) jerror(&err, "Failed to parse setting network emulation settings");