From 8f0374f7521376bdb721e821047e8a6a4a727283 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 2 Nov 2015 15:53:09 +0100 Subject: 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 --- src/vty/stats_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3