diff options
author | Ben Laurie <ben@openssl.org> | 2002-11-13 16:43:43 +0100 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-11-13 16:43:43 +0100 |
commit | 54a656ef081f72a740c550ebd8099b40b8b5cde0 (patch) | |
tree | 9b3638b56848c7f0648b84cfa7ad056116b37a1b /crypto/md2 | |
parent | When build as dynamic engines, the loading functions should be defined (diff) | |
download | openssl-54a656ef081f72a740c550ebd8099b40b8b5cde0.tar.xz openssl-54a656ef081f72a740c550ebd8099b40b8b5cde0.zip |
Security fixes brought forward from 0.9.7.
Diffstat (limited to 'crypto/md2')
-rw-r--r-- | crypto/md2/md2_dgst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/md2/md2_dgst.c b/crypto/md2/md2_dgst.c index e25dd00e02..f98009acad 100644 --- a/crypto/md2/md2_dgst.c +++ b/crypto/md2/md2_dgst.c @@ -118,9 +118,9 @@ const char *MD2_options(void) int MD2_Init(MD2_CTX *c) { c->num=0; - memset(c->state,0,MD2_BLOCK*sizeof(MD2_INT)); - memset(c->cksm,0,MD2_BLOCK*sizeof(MD2_INT)); - memset(c->data,0,MD2_BLOCK); + memset(c->state,0,sizeof c->state); + memset(c->cksm,0,sizeof c->cksm); + memset(c->data,0,sizeof c->data); return 1; } |