Fix datarace reported by valgrind/helgrind
authorRussell Coker <russell@coker.com.au>
Thu, 25 Jun 2009 05:59:32 +0000 (15:59 +1000)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 10 Nov 2014 17:36:09 +0000 (18:36 +0100)
commite298409c34ac7a91376b7cc7c8fb62853d1442a5
tree6e0e4d9db0874b0c4a2e31062e9c7f7015afe133
parent25012d5e79681edf37cb55902a521b1d07201362
Fix datarace reported by valgrind/helgrind

This doesn't really fix the datarace but changes it so it can only happens
once. This isn't really a problem since we always just set it to the same
value. We now just stop writing it after the first time.

PR3584, https://bugs.debian.org/534534

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/mem.c