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.
This commit is contained in:
Neels Hofmeyr
2016-05-04 16:00:34 +02:00
parent 9015d4db52
commit a27b295100
2 changed files with 2 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;
}