aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-09-23 22:18:50 +0000
committerRoger Dingledine <arma@torproject.org>2004-09-23 22:18:50 +0000
commitfa0a1ec49ff9cd93730e81f5eb4112624b5c0443 (patch)
tree3beb7863d2e6cf91a3c8b4a632624c423c5edfe2 /src/or/connection_edge.c
parent09f450104ae87cadf71e4eca982fc35446c6af30 (diff)
downloadtor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar
tor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar.gz
cleanup: use strcmpstart() in more places
svn:r2372
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index d1bf109f2..1b2279c93 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -957,7 +957,7 @@ int connection_ap_can_use_exit(connection_t *conn, routerinfo_t *exit)
/* 0.0.7 servers and earlier don't support DNS resolution. There are no
* ORs running code before 0.0.7, so we only worry about 0.0.7. Once all
* servers are running 0.0.8, remove this check. XXX */
- return strncmp(exit->platform, "Tor 0.0.7", 9) ? 1 : 0;
+ return strcmpstart(exit->platform, "Tor 0.0.7") ? 1 : 0;
}
addr = client_dns_lookup_entry(conn->socks_request->address);
if(router_compare_addr_to_exit_policy(addr,