Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
a6595f45
Commit
a6595f45
authored
21 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
revert part of that last change
time for bed svn:r840
parent
c00953d2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/connection_or.c
+5
-5
5 additions, 5 deletions
src/or/connection_or.c
with
5 additions
and
5 deletions
src/or/connection_or.c
+
5
−
5
View file @
a6595f45
...
...
@@ -224,6 +224,11 @@ static int connection_tls_finish_handshake(connection_t *conn) {
}
log_fn
(
LOG_DEBUG
,
"The router's pk matches the one we meant to connect to. Good."
);
}
else
{
if
(
connection_exact_get_by_addr_port
(
router
->
addr
,
router
->
or_port
))
{
log_fn
(
LOG_INFO
,
"Router %s is already connected. Dropping."
,
router
->
nickname
);
crypto_free_pk_env
(
pk
);
return
-
1
;
}
connection_or_init_conn_from_router
(
conn
,
router
);
}
crypto_free_pk_env
(
pk
);
...
...
@@ -232,11 +237,6 @@ static int connection_tls_finish_handshake(connection_t *conn) {
nickname
,
conn
->
nickname
);
return
-
1
;
}
otherconn
=
connection_exact_get_by_addr_port
(
router
->
addr
,
router
->
or_port
);
if
(
otherconn
&&
connection_state_is_open
(
otherconn
))
{
log_fn
(
LOG_INFO
,
"Router %s is already connected. Dropping."
,
router
->
nickname
);
return
-
1
;
}
if
(
!
options
.
OnionRouter
)
{
/* If I'm an OP... */
conn
->
receiver_bucket
=
conn
->
bandwidth
=
DEFAULT_BANDWIDTH_OP
;
circuit_n_conn_open
(
conn
);
/* send the pending creates, if any. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment