]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/md2/md2_dgst.c
Convert memset calls to OPENSSL_cleanse
[thirdparty/openssl.git] / crypto / md2 / md2_dgst.c
index b43cd4f489bb64b72d7da02f002c61be9e8167ed..ff062fd4727309d6ba02cba026390f689ac47881 100644 (file)
@@ -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;
 }