summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-17 19:47:48 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-17 19:47:48 -0400
commite0e8424f1eaf88f1c03a0acbfe09d368d3cbb1be (patch)
tree1bb633f98ef832cf555386118d4115de9fd24ffc /src/or/circuitbuild.c
parent4082d67b03075712707d76b960c6525d00c1c0c0 (diff)
parent21ed575826e701437f7893536ffc5c8d2a71532f (diff)
downloadtor-e0e8424f1eaf88f1c03a0acbfe09d368d3cbb1be.tar.gz
tor-e0e8424f1eaf88f1c03a0acbfe09d368d3cbb1be.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 3337d64987..c91e2f32f1 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -4556,7 +4556,7 @@ get_configured_bridge_by_addr_port_digest(const tor_addr_t *addr,
!tor_addr_compare(&bridge->addr, addr, CMP_EXACT) &&
bridge->port == port)
return bridge;
- if (tor_memeq(bridge->identity, digest, DIGEST_LEN))
+ if (digest && tor_memeq(bridge->identity, digest, DIGEST_LEN))
return bridge;
}
SMARTLIST_FOREACH_END(bridge);