diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-27 23:21:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-27 23:21:46 -0500 |
commit | 49976fabc4457713347fe6d0c8e16939de852393 (patch) | |
tree | 189e3ec708102cec245be2a5e5bbaf6c54335517 /src/test/test_scheduler.c | |
parent | 95ead313490accfb9ec43630a702b6d735dd34fb (diff) | |
download | tor-49976fabc4457713347fe6d0c8e16939de852393.tar.gz tor-49976fabc4457713347fe6d0c8e16939de852393.zip |
Fix a likely bug found by coverity in test_scheduler.c.
Andrea, do you agree with this?
This is CID 1256186
Diffstat (limited to 'src/test/test_scheduler.c')
-rw-r--r-- | src/test/test_scheduler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_scheduler.c b/src/test/test_scheduler.c index da5c4e8fa0..d031214f41 100644 --- a/src/test/test_scheduler.c +++ b/src/test/test_scheduler.c @@ -258,7 +258,7 @@ circuitmux_compare_muxes_mock(circuitmux_t *cmux_1, else if (cmux_1 == mock_ccm_tgt_2 && cmux_2 == mock_ccm_tgt_1) { result = 1; } else { - if (cmux_1 == mock_ccm_tgt_1 || cmux_1 == mock_ccm_tgt_1) result = -1; + if (cmux_1 == mock_ccm_tgt_1 || cmux_1 == mock_ccm_tgt_2) result = -1; else if (cmux_2 == mock_ccm_tgt_1 || cmux_2 == mock_ccm_tgt_2) { result = 1; } else { |