diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-02-01 13:12:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-02-01 13:12:58 -0500 |
commit | c6fa55d2da728ab5abb8be82eba4c903c452516e (patch) | |
tree | 9df456db9916907393fcb8d97114d3c046a931dd /src | |
parent | 7631cffbccd1536278228f994bc1762e430157ac (diff) | |
download | tor-c6fa55d2da728ab5abb8be82eba4c903c452516e.tar.gz tor-c6fa55d2da728ab5abb8be82eba4c903c452516e.zip |
Bitwise negate is ~, not !.
Spotted by coverity; bug in tests only, not in any released Tor.
This is CID 1351128
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c index 090a60766c..8c4254ccd7 100644 --- a/src/test/test_routerlist.c +++ b/src/test/test_routerlist.c @@ -311,7 +311,7 @@ test_router_pick_directory_server_impl(void *arg) node_router3->rs->last_dir_503_at = 0; /* Set a Fascist firewall */ - flags &= ! PDS_IGNORE_FASCISTFIREWALL; + flags &= ~ PDS_IGNORE_FASCISTFIREWALL; policy_line = tor_malloc_zero(sizeof(config_line_t)); policy_line->key = tor_strdup("ReachableORAddresses"); policy_line->value = tor_strdup("accept *:442, reject *:*"); |