aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/transforms
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-22 14:44:47 +0000
committerMartin Willi <martin@strongswan.org>2005-11-22 14:44:47 +0000
commit6c105d1c89d1d85e025b7f9de25c19f45e7aafaf (patch)
treec1a3ddb48095220e39db7d417bc3606abb2b71d9 /Source/charon/transforms
parent5e280720e3010ef2f60186c0c259206a0a60dc0b (diff)
downloadstrongswan-6c105d1c89d1d85e025b7f9de25c19f45e7aafaf.tar.bz2
strongswan-6c105d1c89d1d85e025b7f9de25c19f45e7aafaf.tar.xz
- fixed freeing bug
Diffstat (limited to 'Source/charon/transforms')
-rw-r--r--Source/charon/transforms/hmac.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/charon/transforms/hmac.c b/Source/charon/transforms/hmac.c
index 809c7f8bb..7192735bf 100644
--- a/Source/charon/transforms/hmac.c
+++ b/Source/charon/transforms/hmac.c
@@ -39,11 +39,6 @@ struct private_hmac_s {
hmac_t public;
/**
- * key, as in RFC
- */
- chunk_t k;
-
- /**
* block size, as in RFC
*/
u_int8_t b;
@@ -175,7 +170,6 @@ static status_t set_key(private_hmac_t *this, chunk_t key)
static status_t destroy(private_hmac_t *this)
{
this->h->destroy(this->h);
- allocator_free(this->k.ptr);
allocator_free(this->opaded_key.ptr);
allocator_free(this->ipaded_key.ptr);
allocator_free(this);
@@ -228,7 +222,6 @@ hmac_t *hmac_create(hash_algorithm_t hash_algorithm)
if (this->opaded_key.ptr == NULL)
{
this->h->destroy(this->h);
- allocator_free(this->k.ptr);
allocator_free(this);
return NULL;
}