commit | 279432a7c015bcb8f5b22a2aa6335c754db0f335 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 26 10:09:35 2012 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 26 10:09:35 2012 +0000 |
tree | 83184dbf78c60160b9cd1834f4e60d15bf22c84b | |
parent | 4cf2b7f8bfa71022e1ea4a1b3ee264f5e72b4a84 [diff] [blame] |
- Fixed size of clean
diff --git a/library/cipher.c b/library/cipher.c index 85c74ab..0d1258b 100644 --- a/library/cipher.c +++ b/library/cipher.c
@@ -260,7 +260,7 @@ if( NULL == cipher_info || NULL == ctx ) return POLARSSL_ERR_CIPHER_BAD_INPUT_DATA; - memset( ctx, 0, sizeof( ctx ) ); + memset( ctx, 0, sizeof( cipher_context_t ) ); if( NULL == ( ctx->cipher_ctx = cipher_info->base->ctx_alloc_func() ) ) return POLARSSL_ERR_CIPHER_ALLOC_FAILED;