Browse Source

crclib: md5: fix memset call

pull/2/head
Alibek Omarov 6 years ago
parent
commit
9d156b4285
  1. 2
      engine/common/crclib.c

2
engine/common/crclib.c

@ -422,7 +422,7 @@ void MD5Final( byte digest[16], MD5Context_t *ctx ) @@ -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…
Cancel
Save