summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ncr-key-wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c
index cb431c9b5aa..33c2627d642 100644
--- a/ncr-key-wrap.c
+++ b/ncr-key-wrap.c
@@ -403,7 +403,7 @@ val64_t * R = NULL;
ret = rfc3394_unwrap(wrapped_key, R, n, A, &ctx);
if (ret < 0) {
err();
- return ret;
+ goto cleanup;
}
if (memcmp(A, iv, 8)!= 0) {