diff --git a/daemon/libs/iax2/md5.c b/daemon/libs/iax2/md5.c index 656601f98b3094293a1b0c84f1015c41eea07301..d84c66b892db0c669258ddb057537078e6cfc77f 100644 --- a/daemon/libs/iax2/md5.c +++ b/daemon/libs/iax2/md5.c @@ -177,7 +177,7 @@ void IAX_MD5Final(uint8_t digest[16], struct IAX_MD5Context *ctx) IAX_MD5Transform(ctx->buf, (uint32_t *) ctx->in); IAX_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