- 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;