From 4dabb1704fda63f6afde68275fa7027dc8d61ba7 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Fri, 9 Jul 2010 08:14:46 +0200 Subject: Fix error paths in ncr_key_storage_wrap Signed-off-by: Nikos Mavrogiannopoulos --- ncr-key-wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ncr-key-wrap.c') 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); -- cgit