[tor-commits] [tor/master] Fix a pair of dead assignments

nickm at torproject.org nickm at torproject.org
Fri Dec 11 14:35:47 UTC 2015


commit f3ed5ec0cac4719e249e629760756314d7cfecba
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Dec 11 09:35:43 2015 -0500

    Fix a pair of dead assignments
---
 src/common/crypto.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/common/crypto.c b/src/common/crypto.c
index 6cef249..c93ecaa 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -2551,8 +2551,6 @@ crypto_strongest_rand(uint8_t *out, size_t out_len)
     } else {
       SHA512(inp, sizeof(inp), tmp);
       memcpy(out, tmp, out_len);
-      out += DLEN;
-      out_len -= DLEN;
       break;
     }
   }



More information about the tor-commits mailing list