Change in libosmocore[master]: gprs_ns2: fix crash when changing the MTU

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri Jul 2 14:25:05 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/24824 )


Change subject: gprs_ns2: fix crash when changing the MTU
......................................................................

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
---
M src/gb/gprs_ns2.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/24/24824/1

diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 720e836..a8e646b 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1552,7 +1552,7 @@
 
 	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

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24824
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I31ba5cefea7bbb0b74060d6664b42c58815ee2a1
Gerrit-Change-Number: 24824
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210702/f6c31a75/attachment.htm>


More information about the gerrit-log mailing list