[PATCH 1/4] gprs_gmm: ensure llme present upon Attach Req (CID #57686)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Thu Apr 14 13:21:30 UTC 2016


---
 openbsc/src/gprs/gprs_gmm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 5f0a5fd..438e047 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -838,6 +838,10 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg,
 	int rc;
 
 	LOGMMCTXP(LOGL_INFO, ctx, "-> GMM ATTACH REQUEST ");
+	if (!llme) {
+		LOGMMCTXP(LOGL_ERROR, ctx, "No LLME for GMM ATTACH REQUEST");
+		return -EINVAL;
+	}
 
 	/* As per TS 04.08 Chapter 4.7.1.4, the attach request arrives either
 	 * with a foreign TLLI (P-TMSI that was allocated to the MS before),
-- 
2.1.4




More information about the OpenBSC mailing list