diff options
-rw-r--r-- | ncr-key-wrap.c | 3 |
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); |