summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-11 16:32:30 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-11 16:32:30 -0400
commit8fb38331c3213caef2d2e003e02cdb361504f14f (patch)
treea88cbac5893169b1a955543828b2db0aa85d00bb /src/or/eventdns.c
parent0cbcbc3412b667537b6ec54da0a4c9173a19d6de (diff)
downloadtor-8fb38331c3213caef2d2e003e02cdb361504f14f.tar.gz
tor-8fb38331c3213caef2d2e003e02cdb361504f14f.zip
Hand-tune the new tor_memcmp instances in 0.2.2
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 33238b2e05..fc005df2d7 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -2253,7 +2253,7 @@ sockaddr_is_loopback(const struct sockaddr *addr)
return (ntohl(sin->sin_addr.s_addr) & 0xff000000) == 0x7f000000;
} else if (addr->sa_family == AF_INET6) {
struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)addr;
- return tor_memeq(sin6->sin6_addr.s6_addr, LOOPBACK_S6, 16);
+ return fast_memeq(sin6->sin6_addr.s6_addr, LOOPBACK_S6, 16);
}
return 0;
}