opnsense-ports/ftp/wzdftpd/files/patch-libwzd-auth_wzd__md5.c
Franco Fichtner f7bcd85e11 */*: sync with upstream
Taken from: FreeBSD
2023-02-14 22:03:33 +01:00

11 lines
452 B
C

--- 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