mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Bitwise negate is ~, not !.
Spotted by coverity; bug in tests only, not in any released Tor. This is CID 1351128
This commit is contained in:
@@ -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 *:*");
|
||||
|
||||
Reference in New Issue
Block a user