From: Mateusz Forc Date: Thu, 14 Jul 2016 10:26:40 +0000 (+0200) Subject: FIX: Unhandled OpenSSL error, when using invalid imported key X-Git-Tag: accepted/tizen/common/20160810.161523~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=033cdfef3815b34990f8506c9457935fcc909620;p=platform%2Fcore%2Fsecurity%2Fyaca.git FIX: Unhandled OpenSSL error, when using invalid imported key Change-Id: I5982553ae96bd9cde491bc9ccf79ff643303cb25 --- diff --git a/src/encrypt.c b/src/encrypt.c index 1c00abf..83ec1ba 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -421,7 +421,7 @@ static int encrypt_initialize(yaca_context_h *ctx, ret = EVP_CIPHER_CTX_set_key_length(nc->cipher_ctx, key_bit_len / 8); if (ret != 1) { ret = YACA_ERROR_INVALID_PARAMETER; - ERROR_DUMP(ret); + ERROR_CLEAR(); goto exit; }