1
0
Fork 0

iax.md5: pass correct size to memset (identified by gcc)

This commit is contained in:
Thomas Geymayer 2014-06-01 12:20:33 +02:00
parent 06a9958689
commit 8b152f3f82

View file

@ -177,7 +177,7 @@ void MD5Final(uint8_t digest[16], struct MD5Context *ctx)
MD5Transform(ctx->buf, (uint32_t *) ctx->in); MD5Transform(ctx->buf, (uint32_t *) ctx->in);
byteReverse((uint8_t *) ctx->buf, 4); byteReverse((uint8_t *) ctx->buf, 4);
memcpy(digest, ctx->buf, 16); 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 #ifndef ASM_MD5