[tor-commits] [tor/master] Tweak gtank's sha512 patch a little

nickm at torproject.org nickm at torproject.org
Wed Nov 25 14:04:21 UTC 2015


commit 7194d3d95705a30cec69574ff2800cba8e739df9
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Nov 25 09:04:17 2015 -0500

    Tweak gtank's sha512 patch a little
---
 changes/feature17663 |    5 +++--
 src/common/crypto.c  |    3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/changes/feature17663 b/changes/feature17663
index f867c03..baad943 100644
--- a/changes/feature17663
+++ b/changes/feature17663
@@ -1,2 +1,3 @@
-  o Minor feature:
-    - Adds SHA512 support to crypto.c
+  o Minor feature (crypto):
+    - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
+      George Tankersley.
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 72e08c9..5879719 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1890,8 +1890,7 @@ crypto_digest_smartlist_prefix(char *digest_out, size_t len_out,
   crypto_digest_get_digest(d, digest_out, len_out);
 
  free:
-  if (d != NULL)
-    crypto_digest_free(d);
+  crypto_digest_free(d);
 }
 
 /** Compute the HMAC-SHA-256 of the <b>msg_len</b> bytes in <b>msg</b>, using



More information about the tor-commits mailing list