(MD5_Final): make the function threadsafe by removing static on the
local variable zeros git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12749 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -236,7 +236,7 @@ MD5_Update (struct md5 *m, const void *v, size_t len)
|
||||
void
|
||||
MD5_Final (void *res, struct md5 *m)
|
||||
{
|
||||
static unsigned char zeros[72];
|
||||
unsigned char zeros[72];
|
||||
unsigned offset = (m->sz[0] / 8) % 64;
|
||||
unsigned int dstart = (120 - offset - 1) % 64 + 1;
|
||||
|
||||
|
Reference in New Issue
Block a user