summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-06-10 08:37:34 -0400
committerNick Mathewson <nickm@torproject.org>2021-06-10 08:37:34 -0400
commit085bf61a351a6fce94046afe68a17eda0b133606 (patch)
tree529416ffde2299cfac39f4c2123796de995796f4 /src/lib
parenta2e500f1ffd7978d05916060f9d9ff9496d734c0 (diff)
parent1d11675adbc40c52b0d5047c0bb6f033bde6b19a (diff)
downloadtor-085bf61a351a6fce94046afe68a17eda0b133606.tar.gz
tor-085bf61a351a6fce94046afe68a17eda0b133606.zip
Merge branch 'maint-0.4.6'
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/crypt_ops/crypto_rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_rand.c b/src/lib/crypt_ops/crypto_rand.c
index b51013efe4..83b709c623 100644
--- a/src/lib/crypt_ops/crypto_rand.c
+++ b/src/lib/crypt_ops/crypto_rand.c
@@ -525,8 +525,8 @@ crypto_rand_unmocked(char *to, size_t n)
/* We consider a PRNG failure non-survivable. Let's assert so that we get a
* stack trace about where it happened.
*/
- tor_assert(r >= 0);
-#endif /* defined(ENABLE_NSS) */
+ tor_assert(r == 1);
+#endif
}
/**