Detected by gcc:
md5.c: In function ‘MD5Final’:
md5.c:245:26: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
Signed-off-by: Michael Buesch <m@bues.ch>
MD5Transform(ctx->buf, ctx->u.in_u32);
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 */
}