summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ncr-key-wrap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c
index 5510436..3caa0c5 100644
--- a/ncr-key-wrap.c
+++ b/ncr-key-wrap.c
@@ -436,7 +436,8 @@ int ret;
if (!(wkey->flags & NCR_KEY_FLAG_WRAPPABLE)) {
err();
- return -EPERM;
+ ret = -EPERM;
+ goto fail;
}
ret = ncr_key_item_get_read( &key, key_lst, wrap.key.key);