diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-09 17:32:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-10 10:41:18 +0200 |
commit | 6e059b5dddca3ef1b83dab9dac0a296be848b921 (patch) | |
tree | 134b183ffae04a08cd573312173e4f206c14d83c | |
parent | 7e396d73daee32d596139e73fb5ffbf239096097 (diff) |
M3UA: Respond with "Unexpected Message" if ASPTM is received too soon
This was discovered (and fix validated) using m3ua-sgp-aspsm-i-003
of Michale Tuexen's m3ua-testtool.
Change-Id: I8b63e7b5e39a7ef8dd66bf014110a04f5f3dc2a2
-rw-r--r-- | src/m3ua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -623,7 +623,8 @@ static int m3ua_rx_asp(struct osmo_ss7_asp *asp, struct xua_msg *xua) return M3UA_ERR_UNSUPP_MSG_TYPE; /* deliver that event to the ASP FSM */ - osmo_fsm_inst_dispatch(asp->fi, event, xua); + if (osmo_fsm_inst_dispatch(asp->fi, event, xua) < 0) + return M3UA_ERR_UNEXPECTED_MSG; return 0; } |