(MD4_Final): make the function threadsafe by removing static on the
local variable zeros git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12750 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -212,7 +212,7 @@ MD4_Update (struct md4 *m, const void *v, size_t len)
|
||||
void
|
||||
MD4_Final (void *res, struct md4 *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