Message ID | 20160415215911.GA24964@dub6 |
---|---|
State | Not Applicable |
Headers | show |
> On 15 Apr 2016, at 23:59, Neels Hofmeyr <nhofmeyr@sysmocom.de> wrote: > Neels, > if (ctx) > mm_ctx_cleanup_free(ctx, "GPRS ATTACH REJ"); > - else > + else if (llme) > /* TLLI unassignment */ > gprs_llgmm_assign(llme, llme->tlli, 0xffffffff, GPRS_ALGO_GEA0, NULL); I don't think this is the right thing to do. There should always be a llme here. Please have a look at the coverity report it will tell where thos llme has been NULL.
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index f510e64..f8d75d5 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -1185,7 +1185,7 @@ rejected: rc = gsm48_tx_gmm_att_rej_oldmsg(msg, reject_cause); if (ctx) mm_ctx_cleanup_free(ctx, "GPRS ATTACH REJ"); - else + else if (llme) /* TLLI unassignment */ gprs_llgmm_assign(llme, llme->tlli, 0xffffffff, GPRS_ALGO_GEA0, NULL);