aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-02 15:53:09 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-02 15:53:09 +0100
commit8f0374f7521376bdb721e821047e8a6a4a727283 (patch)
tree0666fa8f415a47e8f5645dd87ad8844251251c6a /src
parent7921975989a1844546669a77ecdc9160fdef2282 (diff)
stats: Fix handling of the no mtu command
For the atoi we need to pass the val as a string. This means we need to write "0" which then gets parsed to 0. [src/vty/stats_vty.c:90]: (error) Possible null pointer dereference: val
Diffstat (limited to 'src')
-rw-r--r--src/vty/stats_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/stats_vty.c b/src/vty/stats_vty.c
index 0b7ac7ad..98253fff 100644
--- a/src/vty/stats_vty.c
+++ b/src/vty/stats_vty.c
@@ -149,7 +149,7 @@ DEFUN(cfg_no_stats_reporter_mtu, cfg_no_stats_reporter_mtu_cmd,
NO_STR "Set the maximum packet size\n")
{
return set_srep_parameter_int(vty, osmo_stats_reporter_set_mtu,
- 0, "mtu");
+ "0", "mtu");
}
DEFUN(cfg_stats_reporter_prefix, cfg_stats_reporter_prefix_cmd,