浏览代码

Tweak gtank's sha512 patch a little

Nick Mathewson 9 年之前
父节点
当前提交
7194d3d957
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 2
      changes/feature17663
  2. 1 2
      src/common/crypto.c

+ 3 - 2
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.

+ 1 - 2
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