From 67305d1b0a6dbcdb032d5a5a0e92122cf8f10b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 27 May 2017 17:50:43 +0200 Subject: openssl: Sync with upstream 1.0.2l --- thirdparty/openssl/crypto/modes/ctr128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thirdparty/openssl/crypto/modes') diff --git a/thirdparty/openssl/crypto/modes/ctr128.c b/thirdparty/openssl/crypto/modes/ctr128.c index bcafd6b6bf..d4b22728e6 100644 --- a/thirdparty/openssl/crypto/modes/ctr128.c +++ b/thirdparty/openssl/crypto/modes/ctr128.c @@ -100,7 +100,7 @@ static void ctr128_inc_aligned(unsigned char *counter) --n; d = data[n] += c; /* did addition carry? */ - c = ((d - c) ^ d) >> (sizeof(size_t) * 8 - 1); + c = ((d - c) & ~d) >> (sizeof(size_t) * 8 - 1); } while (n); } #endif -- cgit v1.2.3