aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-03-08 23:02:34 +0100
committerAlexander Færøy <ahf@torproject.org>2017-03-09 00:10:17 +0100
commit02ef06516e64c1559b24123d7c7d164b76110c9a (patch)
tree4c5677250658535f4868cd2a7c089add5d9f0b45 /src/test/test_util.c
parent0e5c7dc45b9a70ba44dd9a3dc0c3cb38e05e019d (diff)
downloadtor-02ef06516e64c1559b24123d7c7d164b76110c9a.tar.gz
tor-02ef06516e64c1559b24123d7c7d164b76110c9a.zip
Use less-than instead of not-equal-to for comparison in read loops.
This patch changes a number of read loops in the util module to use less-than comparison instead of not-equal-to comparison. We do this in the case that we have a bug elsewhere that might cause `numread` to become larger than `count` and thus become an infinite loop.
Diffstat (limited to 'src/test/test_util.c')
0 files changed, 0 insertions, 0 deletions