libmsc/sgs_iface.c: fix SGS_STATE_NS11 counter reference

The SGS_STATE_TS11 is not for counters, it's for timers!

Change-Id: Ifbb1a37e644ae8bf8e7959f6f6cd6403ac1f2f1b
Fixes: CID#190872 Out-of-bounds read (OVERRUN)
This commit is contained in:
Vadim Yanitskiy 2019-02-23 16:04:17 +07:00 committed by Harald Welte
parent 1396e1ca35
commit e9ef7c6b9a
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ static int sgs_vlr_reset_fsm_timer_cb(struct osmo_fsm_inst *fi)
mme->ns11_remaining--;
} else {
LOGMME(mme, LOGL_ERROR, "Ts11 expired more than %u (Ns11) times, giving up\n",
sgs->cfg.counter[SGS_STATE_TS11]);
sgs->cfg.counter[SGS_STATE_NS11]);
osmo_fsm_inst_state_chg(fi, SGS_VLRR_ST_NULL, 0, 0);
}
break;