diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-12-25 23:46:06 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-12-25 23:46:06 +0100 |
commit | dc5b02674fca593500397f443fed65f306979a8d (patch) | |
tree | 533a0753d6369446a7d57d0b817aad9846d274fc | |
parent | 5997357c69ede30599a20be19ba35f0790ef57da (diff) |
fix nullpointer: in gsm48_rx_gmm_ra_upd_req()
Change-Id: Ifde15dc4151d84748f0e67b32c9c260cb2d9d8fc
-rw-r--r-- | src/sgsn/gprs_gmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c index f62d0d1f2..d34000506 100644 --- a/src/sgsn/gprs_gmm.c +++ b/src/sgsn/gprs_gmm.c @@ -1642,7 +1642,7 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg, rate_ctr_inc(&mmctx->ctrg->ctr[GMM_CTR_PKTS_SIG_IN]); /* Update the MM context with the new RA-ID */ - if (mmctx->ran_type == MM_CTX_T_GERAN_Gb) { + if (mmctx->ran_type == MM_CTX_T_GERAN_Gb && msgb_bcid(msg)) { bssgp_parse_cell_id(&mmctx->ra, msgb_bcid(msg)); /* Update the MM context with the new (i.e. foreign) TLLI */ mmctx->gb.tlli = msgb_tlli(msg); |