diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-04 15:59:20 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-04 16:06:59 +0200 |
commit | 9015d4db52d9de0fea39eede34a3972551a96edf (patch) | |
tree | a07a1e836172b553054555015426297e62946e42 /openbsc/src/osmo-cscn/iucs_ranap.c | |
parent | 3cda07754184867c49b7116f6dc000d03c0e33ea (diff) |
msc: ignore cb retval on auth/sec mode rx
Just return 0 regardless of the security callback's return value when
receiving authentication response or security mode complete messages.
Diffstat (limited to 'openbsc/src/osmo-cscn/iucs_ranap.c')
-rw-r--r-- | openbsc/src/osmo-cscn/iucs_ranap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/osmo-cscn/iucs_ranap.c b/openbsc/src/osmo-cscn/iucs_ranap.c index f34a2003e..8c949bb31 100644 --- a/openbsc/src/osmo-cscn/iucs_ranap.c +++ b/openbsc/src/osmo-cscn/iucs_ranap.c @@ -68,10 +68,10 @@ int iucs_rx_sec_mode_compl(struct gsm_subscriber_connection *conn, conn->iu.integrity_protection = INTEGRITY_PROTECTION_IK; cb = conn->sec_operation->cb; - if (!cb) - return 0; - return cb(GSM_HOOK_RR_SECURITY, GSM_SECURITY_SUCCEEDED, - NULL, conn, conn->sec_operation->cb_data); + if (cb) + cb(GSM_HOOK_RR_SECURITY, GSM_SECURITY_SUCCEEDED, NULL, + conn, conn->sec_operation->cb_data); + return 0; } int iucs_rx_ranap_event(struct gsm_network *network, |