From 5db544cc26db378616a46dfa22138f0008cf2930 Mon Sep 17 00:00:00 2001 From: Rene Mayrhofer Date: Thu, 5 Jul 2007 00:05:56 +0000 Subject: - Updated to new upstream release. --- src/libstrongswan/asn1/pem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstrongswan/asn1/pem.c') diff --git a/src/libstrongswan/asn1/pem.c b/src/libstrongswan/asn1/pem.c index e88db249d..641805869 100755 --- a/src/libstrongswan/asn1/pem.c +++ b/src/libstrongswan/asn1/pem.c @@ -117,8 +117,10 @@ static err_t pem_decrypt(chunk_t *blob, encryption_algorithm_t alg, size_t key_s crypter->set_key(crypter, key); if (crypter->decrypt(crypter, *blob, *iv, &decrypted) != SUCCESS) { + crypter->destroy(crypter); return "data size is not multiple of block size"; } + crypter->destroy(crypter); memcpy(blob->ptr, decrypted.ptr, blob->len); chunk_free(&decrypted); -- cgit v1.2.3