summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 16:00:34 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 16:06:59 +0200
commita27b295100f30f5477bc5baae4a2872997f86f33 (patch)
tree6d7e08a7f4e71883989bde4e0ec5efdb98a71f24
parent9015d4db52d9de0fea39eede34a3972551a96edf (diff)
msc: fix: two missing security operation releases
When receiving authentication response or security mode complete messages, actually release the security operation stored with the subscriber conn.
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c1
-rw-r--r--openbsc/src/osmo-cscn/iucs_ranap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 61356eadf..b2ac55c48 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -1179,6 +1179,7 @@ static int gsm48_rx_mm_auth_resp(struct gsm_subscriber_connection *conn, struct
if (cb)
cb(GSM_HOOK_RR_SECURITY, GSM_SECURITY_SUCCEEDED, NULL,
conn, conn->sec_operation->cb_data);
+ release_security_operation(conn);
return 0;
}
diff --git a/openbsc/src/osmo-cscn/iucs_ranap.c b/openbsc/src/osmo-cscn/iucs_ranap.c
index 8c949bb31..4a0f6bbcf 100644
--- a/openbsc/src/osmo-cscn/iucs_ranap.c
+++ b/openbsc/src/osmo-cscn/iucs_ranap.c
@@ -71,6 +71,7 @@ int iucs_rx_sec_mode_compl(struct gsm_subscriber_connection *conn,
if (cb)
cb(GSM_HOOK_RR_SECURITY, GSM_SECURITY_SUCCEEDED, NULL,
conn, conn->sec_operation->cb_data);
+ release_security_operation(conn);
return 0;
}