From fa0a1ec49ff9cd93730e81f5eb4112624b5c0443 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 23 Sep 2004 22:18:50 +0000 Subject: cleanup: use strcmpstart() in more places svn:r2372 --- src/or/connection_or.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/connection_or.c') 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; -- cgit v1.2.3-54-g00ecf