aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.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/circuituse.c
parent09f450104ae87cadf71e4eca982fc35446c6af30 (diff)
downloadtor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar
tor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar.gz
cleanup: use strcmpstart() in more places
svn:r2372
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 9173bc09a..549993a7c 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -79,7 +79,7 @@ static int circuit_is_acceptable(circuit_t *circ,
/* 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. */
- if (!strncmp(exitrouter->platform, "Tor 0.0.7", 9))
+ if (!strcmpstart(exitrouter->platform, "Tor 0.0.7"))
return 0;
} else if(purpose == CIRCUIT_PURPOSE_C_GENERAL) {
if(!connection_ap_can_use_exit(conn, exitrouter)) {