mirror of https://gerrit.osmocom.org/libosmocore
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
This commit is contained in:
parent
7921975989
commit
8f0374f752
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue