From a6ab1859c4f4ddce4630d19fd358437b1dad6330 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 25 Oct 2011 14:31:18 +0200 Subject: [PATCH] oops, another thread bug --- d0_blind_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d0_blind_id.c b/d0_blind_id.c index 1920cdc..2b48e59 100644 --- a/d0_blind_id.c +++ b/d0_blind_id.c @@ -47,7 +47,7 @@ #define SHA_DIGESTSIZE 32 const char *sha(const unsigned char *in, size_t len) { - char h[32]; + static __thread char h[32]; d0_blind_id_util_sha256(h, (const char *) in, len); return h; } -- 2.39.2