aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-09-06 00:19:15 +0200
committerAlexander Couzens <lynxis@fe80.eu>2021-09-07 20:46:04 +0200
commitf27fbf65b7b2df565778370393475850b0ba12f7 (patch)
tree446e197f4e7090163b773b0de674f15d3ab69e06
parent3178e30206934d78c1229a04814957837f1dde77 (diff)
ns2: nsvc: reject UNITDATA when the remote BLOCK'ed
When the remote initiated the BLOCK the nsvc would still accept UNITDATA over this nsvc. Change-Id: I3ed4aa105a84e448082d3028fe844aae7720426b
-rw-r--r--src/gb/gprs_ns2_vc_fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c
index 1fcc3ad4..76497989 100644
--- a/src/gb/gprs_ns2_vc_fsm.c
+++ b/src/gb/gprs_ns2_vc_fsm.c
@@ -438,6 +438,7 @@ static void ns2_st_unblocked(struct osmo_fsm_inst *fi, uint32_t event, void *dat
break;
case GPRS_NS2_EV_RX_BLOCK:
priv->initiate_block = false;
+ priv->accept_unitdata = false;
ns2_tx_block_ack(priv->nsvc);
osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_BLOCKED,
0, 2);