]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Bitwise negate is ~, not !.
authorNick Mathewson <nickm@torproject.org>
Mon, 1 Feb 2016 18:12:58 +0000 (13:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 1 Feb 2016 18:12:58 +0000 (13:12 -0500)
Spotted by coverity; bug in tests only, not in any released Tor.

This is CID 1351128

src/test/test_routerlist.c

index 090a60766c9bcde478d208593c527e2f89f13537..8c4254ccd7b9966d6a632fdb7871cade3b15fb35 100644 (file)
@@ -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 *:*");