aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cipher/cipher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index 950f625cf..591ce208e 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -389,10 +389,10 @@ cipher_open( int algo, int mode, int secure )
/* ? perform selftest here and mark this with a flag in cipher_table ? */
- hd = secure ? m_alloc_secure_clear( sizeof *hd
+ hd = secure ? xmalloc_secure_clear( sizeof *hd
+ cipher_table[i].contextsize
- sizeof(PROPERLY_ALIGNED_TYPE) )
- : m_alloc_clear( sizeof *hd + cipher_table[i].contextsize
+ : xmalloc_clear( sizeof *hd + cipher_table[i].contextsize
- sizeof(PROPERLY_ALIGNED_TYPE) );
hd->algo = algo;
hd->blocksize = cipher_table[i].blocksize;
@@ -421,7 +421,7 @@ cipher_open( int algo, int mode, int secure )
void
cipher_close( CIPHER_HANDLE c )
{
- m_free(c);
+ xfree(c);
}