summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-25 09:04:17 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-25 09:04:17 -0500
commit7194d3d95705a30cec69574ff2800cba8e739df9 (patch)
tree92df8673841df7d1a36eaa9d4d8ddec3c1d1540e /src/common
parent74e5385da701392c3fb72487753831b30a0b0c5c (diff)
downloadtor-7194d3d95705a30cec69574ff2800cba8e739df9.tar.gz
tor-7194d3d95705a30cec69574ff2800cba8e739df9.zip
Tweak gtank's sha512 patch a little
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 72e08c98ce..587971934b 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