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

Fixes: 2ff5bcdc38
Change-Id: I667cf4c8e3e7b6e77ea6ed8ae603727ad22a2ee2
This commit is contained in:
Pau Espin 2019-09-16 19:01:37 +02:00
parent 01653252b4
commit b08a380420
1 changed files with 1 additions and 1 deletions

View File

@ -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]);