diff options
author | Chelsea H. Komlo <chelsea.komlo@gmail.com> | 2016-11-17 22:58:36 -0500 |
---|---|---|
committer | Chelsea H. Komlo <chelsea.komlo@gmail.com> | 2016-11-24 12:13:07 -0500 |
commit | 9d9110f65db8af5ea4ddf93b01a099eb53e9b59f (patch) | |
tree | 04edf37906e4e621dfcd6eb69a2d7d786a9b3c15 /src/or/routerparse.c | |
parent | 276d07a88a3b595aff9e28c7f1862563d2751b55 (diff) | |
download | tor-9d9110f65db8af5ea4ddf93b01a099eb53e9b59f.tar.gz tor-9d9110f65db8af5ea4ddf93b01a099eb53e9b59f.zip |
crypto_digest256 returns expected error value of -1
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |