summaryrefslogtreecommitdiffstats
path: root/ncr-key-wrap.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-09 08:14:46 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-19 09:25:32 +0200
commit4dabb1704fda63f6afde68275fa7027dc8d61ba7 (patch)
tree7c12321c50d1ac9f20d2b02375a85bf6c32ba221 /ncr-key-wrap.c
parentbdaef75e5a9ff8454558b16c3bcbd06c3e588475 (diff)
downloadcryptodev-linux-4dabb1704fda63f6afde68275fa7027dc8d61ba7.tar.gz
cryptodev-linux-4dabb1704fda63f6afde68275fa7027dc8d61ba7.tar.xz
cryptodev-linux-4dabb1704fda63f6afde68275fa7027dc8d61ba7.zip
Fix error paths in ncr_key_storage_wrap
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'ncr-key-wrap.c')
-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);