Browse Source

Fix a likely bug found by coverity in test_scheduler.c.

Andrea, do you agree with this?

This is CID 1256186
Nick Mathewson 9 years ago
parent
commit
49976fabc4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/test/test_scheduler.c

+ 1 - 1
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 {