X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fmd2%2Fmd2_dgst.c;h=ff062fd4727309d6ba02cba026390f689ac47881;hb=c62ee12574e661a111238954b07ea1d5f0786bec;hp=b43cd4f489bb64b72d7da02f002c61be9e8167ed;hpb=aa6bb1352b1026b20a23b49da4efdcf171926eb0;p=oweals%2Fopenssl.git diff --git a/crypto/md2/md2_dgst.c b/crypto/md2/md2_dgst.c index b43cd4f489..ff062fd472 100644 --- a/crypto/md2/md2_dgst.c +++ b/crypto/md2/md2_dgst.c @@ -168,6 +168,6 @@ int MD2_Final(unsigned char *md, MD2_CTX *c) for (i = 0; i < 16; i++) md[i] = (UCHAR) (p1[i] & 0xff); - memset(&c, 0, sizeof(c)); + OPENSSL_cleanse(c, sizeof(*c)); return 1; }