]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gosthash.c
tcl_tests: ca.try: Ignore openssl crl exit status for 'corrupted CRL' test
[openssl-gost/engine.git] / gosthash.c
index 036a2b3520f85319bc324b7e1ce792943affd314..7fd3cb058b6abf27ddd49c00552708e19825a1c1 100644 (file)
@@ -65,9 +65,8 @@ static int add_blocks(int n, byte * left, const byte * right)
 {
     int i;
     int carry = 0;
-    int sum;
     for (i = 0; i < n; i++) {
-        sum = (int)left[i] + (int)right[i] + carry;
+        int sum = (int)left[i] + (int)right[i] + carry;
         left[i] = sum & 0xff;
         carry = sum >> 8;
     }