vty: fix access to wrong argv in paging response-timer

Fixes: 2ff5bcdc38
Change-Id: I667cf4c8e3e7b6e77ea6ed8ae603727ad22a2ee2
changes/45/15545/1
Pau Espin 3 years ago
parent 01653252b4
commit b08a380420
  1. 2
      src/libmsc/msc_vty.c

@ -557,7 +557,7 @@ DEFUN(cfg_msc_paging_response_timer, cfg_msc_paging_response_timer_cmd,
"Set to default timeout (" OSMO_STRINGIFY_VAL(MSC_PAGING_RESPONSE_TIMER_DEFAULT) " seconds)\n"
"Set paging timeout in seconds\n")
{
if (!strcmp(argv[1], "default"))
if (!strcmp(argv[0], "default"))
gsmnet->paging_response_timer = MSC_PAGING_RESPONSE_TIMER_DEFAULT;
else
gsmnet->paging_response_timer = atoi(argv[0]);

Loading…
Cancel
Save