aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/osmo-cscn/iucs_ranap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/osmo-cscn/iucs_ranap.c b/openbsc/src/osmo-cscn/iucs_ranap.c
index 4a0f6bbcf..06a0acba4 100644
--- a/openbsc/src/osmo-cscn/iucs_ranap.c
+++ b/openbsc/src/osmo-cscn/iucs_ranap.c
@@ -58,6 +58,14 @@ int iucs_rx_sec_mode_compl(struct gsm_subscriber_connection *conn,
OSMO_ASSERT(conn->via_iface == IFACE_IU);
+ if (!conn->sec_operation) {
+ LOGP(DIUCS, LOGL_ERROR,
+ "Received Security Mode Complete message, but no"
+ " authentication/cipher operation in progress"
+ " for subscr %s\n", subscr_name(conn->subscr));
+ return;
+ }
+
/* TODO evalute ies */
if (conn->iu.integrity_protection)