aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wzdftpd/files/patch-libwzd-auth_wzd__md5.c
blob: 773535058d451bfacc87e63e81e349cb76fb8dfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libwzd-auth/wzd_md5.c.orig	2023-02-11 10:36:30 UTC
+++ libwzd-auth/wzd_md5.c
@@ -158,7 +158,7 @@ void MD5Name(MD5Final)(unsigned char digest[16], struc
     MD5Name(MD5Transform)(ctx->buf, (uint32 *) ctx->in);
     byteReverse((unsigned char *) ctx->buf, 4);
     memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
+    explicit_bzero(ctx, sizeof *ctx);  /* In case it's sensitive */
 }
 
 #ifndef ASM_MD5