aboutsummaryrefslogtreecommitdiff
path: root/src/feature/client
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-02 11:55:18 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-02 14:17:51 -0400
commitc5707d6cf0d3009655ce4681a228c8d2767a9063 (patch)
tree4e4033ba6ac16de0238c7eaf28220700379ceee8 /src/feature/client
parent873d6d3724a4f83e010a8e25f7191bd4ddfa4703 (diff)
downloadtor-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.c3
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));