aboutsummaryrefslogtreecommitdiff
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
commite2d01aac9e2f45f2c8f0de057f3104d6cfcdaa80 (patch)
tree84ff10ed2942f6c3187cd833b52de98585741d42 /src/lib
parentd60f8fe98a59ce13809e65de67e53b3dcf6199f0 (diff)
parent7c19a4d924120f42c224ea357b388b73d05c2d89 (diff)
downloadtor-e2d01aac9e2f45f2c8f0de057f3104d6cfcdaa80.tar.gz
tor-e2d01aac9e2f45f2c8f0de057f3104d6cfcdaa80.zip
Merge branch 'maint-0.4.4' into maint-0.4.5
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 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
}
/**