]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Tweak gtank's sha512 patch a little
authorNick Mathewson <nickm@torproject.org>
Wed, 25 Nov 2015 14:04:17 +0000 (09:04 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 25 Nov 2015 14:04:17 +0000 (09:04 -0500)
changes/feature17663
src/common/crypto.c

index f867c038df918163aab4c1ce80e2075786b6f37c..baad9436fc5353531d257b0808dd6909340fade3 100644 (file)
@@ -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.
index 72e08c98ce1dad2cd4fa99cd23c98bd54a7bbfd3..587971934bb9530b6db83923f0ed06fb98b93753 100644 (file)
@@ -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