aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-20 16:21:45 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-20 16:01:54 +0000
commitceccd4611ffba3a1e5856ed51fea51f51a7b81a2 (patch)
tree20550cfe3858f16f5ef96008c673eb674bcccef4
parente2216654155688356d814b3fb0aaeba404de486e (diff)
gsm48_rx_gmm_att_req: fix error handling: don't clean up NULL llme
-rw-r--r--src/gprs/gprs_gmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index 8441f6b6..f26c22b0 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -1443,7 +1443,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)
gprs_llgmm_unassign(llme);
return rc;