aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-06-10 08:37:26 -0400
committerNick Mathewson <nickm@torproject.org>2021-06-10 08:37:26 -0400
commit7c19a4d924120f42c224ea357b388b73d05c2d89 (patch)
tree2393150956a9db779d845f8ed39b4464777f71a9 /src
parent57a41348eee001809cd77326ca35406888b5a64b (diff)
parent7fdfc2ea5470c572a113321e19cdb5144b10cdd8 (diff)
downloadtor-7c19a4d924120f42c224ea357b388b73d05c2d89.tar.gz
tor-7c19a4d924120f42c224ea357b388b73d05c2d89.zip
Merge branch 'maint-0.3.5' into maint-0.4.4
Diffstat (limited to 'src')
-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 ac5f10da64..ce6f21dbb4 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
}
/**