gprs/gsm0408_gprs_force_reattach_oldmsg: check llme before use

Change-Id: I9385655872c4dcf46aa1d18bcc47b84aba2f34f7
This commit is contained in:
Alexander Couzens 2016-08-30 18:50:58 +02:00 committed by Harald Welte
parent 21b269f814
commit a173566b35
1 changed files with 2 additions and 1 deletions

View File

@ -2554,7 +2554,8 @@ int gsm0408_gprs_force_reattach_oldmsg(struct msgb *msg,
struct gprs_llc_llme *llme)
{
int rc;
gprs_llgmm_reset_oldmsg(msg, GPRS_SAPI_GMM, llme);
if (llme)
gprs_llgmm_reset_oldmsg(msg, GPRS_SAPI_GMM, llme);
rc = gsm48_tx_gmm_detach_req_oldmsg(
msg, GPRS_DET_T_MT_REATT_REQ, GMM_CAUSE_IMPL_DETACHED);