aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-07-02 16:12:28 +0200
committerAlexander Couzens <lynxis@fe80.eu>2021-07-02 17:38:02 +0200
commitdb7b2ab36bd6fb8ae766abd6e1bdf91d2e1a13c7 (patch)
tree729ee44a9ed4503cc2c51e57850c8352249daa88 /src/gb
parentd9825c0a2cfeab682f29167b11aaa154b8a36bae (diff)
gprs_ns2: fix crash when changing the MTU
When the MTU changes for any fr device, all NSE will recalculate their MTU. If any NSE is alive, libosmocore will crash. Related: OS#5192 Change-Id: I31ba5cefea7bbb0b74060d6664b42c58815ee2a1
Diffstat (limited to 'src/gb')
-rw-r--r--src/gb/gprs_ns2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 720e836f..a8e646b4 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1552,7 +1552,7 @@ void ns2_nse_update_mtu(struct gprs_ns2_nse *nse)
nse->mtu = mtu;
if (nse->alive)
- ns2_prim_status_ind(nsvc->nse, NULL, 0, GPRS_NS2_AFF_CAUSE_MTU_CHANGE);
+ ns2_prim_status_ind(nse, NULL, 0, GPRS_NS2_AFF_CAUSE_MTU_CHANGE);
}
/*! calculate the transfer capabilities for a nse