diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-26 11:19:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-26 11:19:46 -0400 |
commit | 806539b40a18dec15e1d3d108eb5aec9d9f3ca40 (patch) | |
tree | c458fce7ed6b133eb6d8c30a2c7271ef14a31c8e /src/feature/client/bridges.c | |
parent | 650b94ebc157da01fcb34e08341ad1717c61f4fe (diff) | |
download | tor-806539b40a18dec15e1d3d108eb5aec9d9f3ca40.tar.gz tor-806539b40a18dec15e1d3d108eb5aec9d9f3ca40.zip |
Use fast check for missing id in node_is_a_configured_bridge()
Fixes bug 30308; bugfix on 0.3.5.1-alpha.
Diffstat (limited to 'src/feature/client/bridges.c')
-rw-r--r-- | src/feature/client/bridges.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/client/bridges.c b/src/feature/client/bridges.c index 05f89ad36c..ea1aff9519 100644 --- a/src/feature/client/bridges.c +++ b/src/feature/client/bridges.c @@ -348,7 +348,7 @@ int node_is_a_configured_bridge(const node_t *node) { /* First, let's try searching for a bridge with matching identity. */ - if (BUG(tor_digest_is_zero(node->identity))) + if (BUG(tor_mem_is_zero(node->identity, DIGEST_LEN))) return 0; if (find_bridge_by_digest(node->identity) != NULL) |