aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-02-23 16:04:17 +0700
committerHarald Welte <laforge@gnumonks.org>2019-02-26 23:16:45 +0000
commite9ef7c6b9a9c9b062c5acd69de69bff65856ab3c (patch)
tree78b0b74c74102377b5b3baf73b6442ca71d49b60
parent1396e1ca35b3a4317b52b147227f5d44e805269c (diff)
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)
-rw-r--r--src/libmsc/sgs_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/sgs_iface.c b/src/libmsc/sgs_iface.c
index 1c2146a..4f262a5 100644
--- a/src/libmsc/sgs_iface.c
+++ b/src/libmsc/sgs_iface.c
@@ -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;