commit | e893b669de5ad68745f4c7f038e6375c41fd9fca | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 26 19:30:20 2012 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 26 19:30:20 2012 +0000 |
tree | 40d954a879a3189347afdc91cad41cb4685278c2 | |
parent | 145e68119b5c296f386d8346ecd51700196e955b [diff] [blame] |
- Updated polarssl-1.1 branch with merged trunk patches
diff --git a/library/cipher.c b/library/cipher.c index 485a09b..0e1224c 100644 --- a/library/cipher.c +++ b/library/cipher.c
@@ -245,7 +245,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;