From c9681ae8977f05de3cd15e53c513c5486c2e6494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 3 Sep 2003 09:27:16 +0000 Subject: [PATCH] (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 --- lib/des/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/des/md5.c b/lib/des/md5.c index f10c754de..df6ac7dc8 100644 --- a/lib/des/md5.c +++ b/lib/des/md5.c @@ -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;