diff options
author | Roger Dingledine <arma@torproject.org> | 2004-09-23 22:18:50 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-09-23 22:18:50 +0000 |
commit | fa0a1ec49ff9cd93730e81f5eb4112624b5c0443 (patch) | |
tree | 3beb7863d2e6cf91a3c8b4a632624c423c5edfe2 /src/or/connection_or.c | |
parent | 09f450104ae87cadf71e4eca982fc35446c6af30 (diff) | |
download | tor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar.gz tor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.zip |
cleanup: use strcmpstart() in more places
svn:r2372
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 2d18e90e26..5272b4a6c6 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -218,7 +218,7 @@ int connection_tls_start_handshake(connection_t *conn, int receiving) { him = router_get_by_digest(conn->identity_digest); me = router_get_my_routerinfo(); - if(him && !strncmp(him->platform, "Tor 0.0.7", 9) && + if(him && !strcmpstart(him->platform, "Tor 0.0.7") && (!me || !me->is_verified)) { log_fn(LOG_INFO,"He's running 0.0.7, and I'm unverified. Acting like OP."); use_no_cert = 1; |