summaryrefslogtreecommitdiff
path: root/cesar/cp
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp')
-rw-r--r--cesar/cp/sta/mgr/src/sta_own_data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cesar/cp/sta/mgr/src/sta_own_data.c b/cesar/cp/sta/mgr/src/sta_own_data.c
index dc03060398..dbd1bb171f 100644
--- a/cesar/cp/sta/mgr/src/sta_own_data.c
+++ b/cesar/cp/sta/mgr/src/sta_own_data.c
@@ -233,7 +233,9 @@ void
cp_sta_own_data_set_security_level (cp_t *ctx,
cp_security_level_t sl)
{
+ /* Check parameters. */
dbg_assert (ctx);
+ dbg_assert (sl < CP_SECURITY_LEVEL_NB);
ctx->sta_mgr.sta_own_data.security_level = sl;