16 lines
508 B
C
16 lines
508 B
C
$NetBSD: patch-src_lib_md5.c,v 1.1 2016/07/08 09:42:54 kamil Exp $
|
|
|
|
Fix memset(3) call.
|
|
|
|
--- src/lib/md5.c.orig 2015-06-21 21:21:25.000000000 +0000
|
|
+++ src/lib/md5.c
|
|
@@ -144,7 +144,7 @@ void MD5Final(unsigned char digest[16],
|
|
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 */
|
|
+ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
|
|
}
|
|
|
|
|