iax.md5: pass correct size to memset (identified by gcc)
This commit is contained in:
parent
06a9958689
commit
8b152f3f82
1 changed files with 1 additions and 1 deletions
2
3rdparty/iaxclient/lib/libiax2/src/md5.c
vendored
2
3rdparty/iaxclient/lib/libiax2/src/md5.c
vendored
|
@ -177,7 +177,7 @@ void MD5Final(uint8_t digest[16], struct MD5Context *ctx)
|
|||
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
|
||||
byteReverse((uint8_t *) 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
|
||||
|
|
Loading…
Reference in a new issue