From 9d9110f65db8af5ea4ddf93b01a099eb53e9b59f Mon Sep 17 00:00:00 2001 From: "Chelsea H. Komlo" Date: Thu, 17 Nov 2016 22:58:36 -0500 Subject: crypto_digest256 returns expected error value of -1 --- src/or/routerparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/routerparse.c') diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 8f8d2b8cd9..f3246c954e 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -4541,7 +4541,7 @@ router_get_hash_impl(const char *s, size_t s_len, char *digest, return -1; } } else { - if (crypto_digest256(digest, start, end-start, alg)) { + if (crypto_digest256(digest, start, end-start, alg) < 0) { log_warn(LD_BUG,"couldn't compute digest"); return -1; } -- cgit v1.2.3-54-g00ecf