You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/iax/files/0.2.2-memset.patch

13 lines
482 B

diff -uNr iax-0.2.2.ORIG/src/md5.c iax-0.2.2/src/md5.c
--- iax-0.2.2.ORIG/src/md5.c 2014-05-13 13:26:51.570877706 +0100
+++ iax-0.2.2/src/md5.c 2014-05-13 13:27:08.567878553 +0100
@@ -165,7 +165,7 @@
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 */
}
#ifndef ASM_MD5