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 3caa0c5..b43aac2 100644
--- a/ncr-key-wrap.c
+++ b/ncr-key-wrap.c
@@ -561,7 +561,8 @@ int ret;
if (!(wkey->flags & NCR_KEY_FLAG_WRAPPABLE)) {
err();
- return -EPERM;
+ ret = -EPERM;
+ goto fail;
}
data = ncr_data_item_get(data_lst, wrap.data);