aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-12-15 18:30:31 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2014-12-23 15:40:01 +0100
commita8e82ace8ad9d635e4bb47ff2acc8fa880260789 (patch)
tree66cd7b5f1775fb538d3bf4c868a32701b4fb7f25
parent027c19b09756f403e6a73849736dd481a959a507 (diff)
downloadstrongswan-a8e82ace8ad9d635e4bb47ff2acc8fa880260789.tar.bz2
strongswan-a8e82ace8ad9d635e4bb47ff2acc8fa880260789.tar.xz
bliss: Make sure sampler exists after checking for it earlier
-rw-r--r--src/libstrongswan/plugins/bliss/bliss_private_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/bliss/bliss_private_key.c b/src/libstrongswan/plugins/bliss/bliss_private_key.c
index 661b4f8ea..4f1aeae92 100644
--- a/src/libstrongswan/plugins/bliss/bliss_private_key.c
+++ b/src/libstrongswan/plugins/bliss/bliss_private_key.c
@@ -133,7 +133,7 @@ static bool sign_bliss_with_sha512(private_bliss_private_key_t *this,
/* Create data hash */
hasher = lib->crypto->create_hasher(lib->crypto, HASH_SHA512);
- if (!hasher )
+ if (!hasher)
{
return FALSE;
}
@@ -384,7 +384,7 @@ static bool sign_bliss_with_sha512(private_bliss_private_key_t *this,
end:
/* cleanup */
- sampler->destroy(sampler);
+ DESTROY_IF(sampler);
hasher->destroy(hasher);
sig->destroy(sig);
fft->destroy(fft);