[PATCH] osmo-sgsn[master]: gsm48_rx_gmm_att_req: fix error handling: don't clean up NUL...

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/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Dec 20 15:23:22 UTC 2017


Review at  https://gerrit.osmocom.org/5527

gsm48_rx_gmm_att_req: fix error handling: don't clean up NULL llme

Change-Id: I78903d0846568d4e98b6e43e62bbe3c329b5bc68
---
M src/gprs/gprs_gmm.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/27/5527/1

diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index 8441f6b..f26c22b 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -1443,7 +1443,7 @@
 	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;

-- 
To view, visit https://gerrit.osmocom.org/5527
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I78903d0846568d4e98b6e43e62bbe3c329b5bc68
Gerrit-PatchSet: 1
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list