Regardless of the compiler optimisation.
This closes #181 pull request.
result[14] = (u_char) (ctx->d >> 16);
result[15] = (u_char) (ctx->d >> 24);
- nxt_memzero(ctx, sizeof(*ctx));
+ nxt_explicit_memzero(ctx, sizeof(*ctx));
}
result[18] = (u_char) (ctx->e >> 8);
result[19] = (u_char) ctx->e;
- nxt_memzero(ctx, sizeof(*ctx));
+ nxt_explicit_memzero(ctx, sizeof(*ctx));
}
result[30] = (u_char) (ctx->h >> 8);
result[31] = (u_char) ctx->h;
- nxt_memzero(ctx, sizeof(*ctx));
+ nxt_explicit_memzero(ctx, sizeof(*ctx));
}
(void) explicit_memset(buf, 0, length)
#else
nxt_inline void
-nxt_explicit_memzero(u_char *buf, size_t length)
+nxt_explicit_memzero(void *buf, size_t length)
{
volatile u_char *p = (volatile u_char *) buf;