From 1f2f1b9dc6bc33428c5c6af22fceb3761bebcb97 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Wed, 17 Aug 2016 14:29:47 +0200 Subject: [PATCH] Add missing ERROR_DUMP() for EVP_PKEY_size() Change-Id: Ie03a37e9ad91cc4b3876d177b1a45593598f645b --- src/seal.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/seal.c b/src/seal.c index 7707e6a..83094ce 100644 --- a/src/seal.c +++ b/src/seal.c @@ -100,8 +100,11 @@ static int seal_encrypt_decrypt_key(const yaca_key_h asym_key, return YACA_ERROR_INVALID_PARAMETER; ret = EVP_PKEY_size(lasym_key->evp); - if (ret <= 0) - return YACA_ERROR_INTERNAL; + if (ret <= 0) { + ret = YACA_ERROR_INTERNAL; + ERROR_DUMP(ret); + return ret; + } output_len = ret; -- 2.7.4