diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-02 11:55:18 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-02 14:17:51 -0400 |
commit | c5707d6cf0d3009655ce4681a228c8d2767a9063 (patch) | |
tree | 4e4033ba6ac16de0238c7eaf28220700379ceee8 /src/feature/client | |
parent | 873d6d3724a4f83e010a8e25f7191bd4ddfa4703 (diff) | |
download | tor-c5707d6cf0d3009655ce4681a228c8d2767a9063.tar.gz tor-c5707d6cf0d3009655ce4681a228c8d2767a9063.zip |
Add braces to IF_BUG_ONCE()s introduced in ticket34069.
Diffstat (limited to 'src/feature/client')
-rw-r--r-- | src/feature/client/bridges.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/client/bridges.c b/src/feature/client/bridges.c index 3a3d1bb681..caa4776493 100644 --- a/src/feature/client/bridges.c +++ b/src/feature/client/bridges.c @@ -273,8 +273,9 @@ extend_info_is_a_configured_bridge(const extend_info_t *ei) ap1 = &ei->orports[0]; if (! tor_addr_is_null(&ei->orports[1].addr)) ap2 = &ei->orports[1]; - IF_BUG_ONCE(ap1 == NULL) + IF_BUG_ONCE(ap1 == NULL) { return 0; + } return addr_is_a_configured_bridge(&ap1->addr, ap1->port, digest) && (ap2 == NULL || addr_is_a_configured_bridge(&ap2->addr, ap2->port, digest)); |