summaryrefslogtreecommitdiffstats
path: root/ncr-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncr-key.c')
-rw-r--r--ncr-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncr-key.c b/ncr-key.c
index f9fdcf4d5b5..295a58ed05d 100644
--- a/ncr-key.c
+++ b/ncr-key.c
@@ -723,7 +723,7 @@ struct key_item_st* newkey = NULL;
/* wrapping keys cannot be used for anything except wrapping.
*/
- if (key->flags & NCR_KEY_FLAG_WRAPPING) {
+ if (key->flags & NCR_KEY_FLAG_WRAPPING || key->flags & NCR_KEY_FLAG_UNWRAPPING) {
err();
ret = -EINVAL;
goto fail;