Add missing ERROR_DUMP() for EVP_PKEY_size() 40/84240/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 17 Aug 2016 12:29:47 +0000 (14:29 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 17 Aug 2016 12:29:47 +0000 (14:29 +0200)
Change-Id: Ie03a37e9ad91cc4b3876d177b1a45593598f645b

src/seal.c

index 7707e6a..83094ce 100644 (file)
@@ -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;