aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-10-31 14:19:39 -0400
committerNick Mathewson <nickm@torproject.org>2016-10-31 14:19:39 -0400
commitbecc95783979cf1879e6390aad80781d0ce3ea66 (patch)
treec66d31a176d78a44c21f69096ca6e20ad40efcaf /src/common/compat.c
parentd28870402376c52b32feaebfcbe190873218fb89 (diff)
downloadtor-becc95783979cf1879e6390aad80781d0ce3ea66.tar.gz
tor-becc95783979cf1879e6390aad80781d0ce3ea66.zip
Actually clamp the number of detected CPUs to 16.
Previously we said we did, but didn't. Fixes #19968; bugfix on 0.2.3.1-alpha.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 3fde2b3089..4f2f9778f2 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -2818,6 +2818,7 @@ compute_num_cpus(void)
"will not autodetect any more than %d, though. If you "
"want to configure more, set NumCPUs in your torrc",
num_cpus, MAX_DETECTABLE_CPUS);
+ num_cpus = MAX_DETECTABLE_CPUS;
/* LCOV_EXCL_STOP */
}
}