summaryrefslogtreecommitdiff
path: root/src/crypto/crypto_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/crypto_linux.c')
-rw-r--r--src/crypto/crypto_linux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/crypto_linux.c b/src/crypto/crypto_linux.c
index 8099193bf0682..17244561b372f 100644
--- a/src/crypto/crypto_linux.c
+++ b/src/crypto/crypto_linux.c
@@ -386,6 +386,9 @@ int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len)
}
crypto_hash_deinit(ctx);
+
+ if (TEST_FAIL())
+ return -1;
return 0;
}