mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
crclib: md5: fix memset call
This commit is contained in:
parent
edde871eb5
commit
9d156b4285
@ -422,7 +422,7 @@ void MD5Final( byte digest[16], MD5Context_t *ctx )
|
||||
|
||||
MD5Transform( ctx->buf, (uint *)ctx->in );
|
||||
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
|
||||
}
|
||||
|
||||
// The four core functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user