Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
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
debian
tor
Commits
b3991ea7
Commit
b3991ea7
authored
15 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge commit 'karsten/fix-1073' into maint-0.2.1
parents
dc322931
da219ee9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
src/or/rendclient.c
+8
-3
8 additions, 3 deletions
src/or/rendclient.c
with
11 additions
and
3 deletions
ChangeLog
+
3
−
0
View file @
b3991ea7
...
...
@@ -42,6 +42,9 @@ Changes in version 0.2.1.20 - 2009-??-??
0.2.1.6-alpha.
- Teach connection_ap_can_use_exit to respect the Exclude*Nodes config
options. Should fix bug 1090. Bugfix on 0.0.2-pre16.
- Avoid segfault in rare cases when finishing an introduction circuit
as a client and finding out that we don't have an introduction key
for it. Fixes bug 1073. Reported by Aaron Swartz.
o Minor features:
- Add a "getinfo status/accepted-server-descriptor" controller
...
...
This diff is collapsed.
Click to expand it.
src/or/rendclient.c
+
8
−
3
View file @
b3991ea7
...
...
@@ -94,9 +94,14 @@ rend_client_send_introduction(origin_circuit_t *introcirc,
}
});
if
(
!
intro_key
)
{
/** XXX This case probably means that the intro point vanished while
* we were building a circuit to it. In the future, we should find
* out how that happened and whether we should kill the circuits to
* removed intro points immediately. See task 1073. */
int
num_intro_points
=
smartlist_len
(
entry
->
parsed
->
intro_nodes
);
if
(
rend_cache_lookup_entry
(
introcirc
->
rend_data
->
onion_address
,
0
,
&
entry
)
>
0
)
{
log_
warn
(
LD_BUG
,
"We have both a v0 and a v2 rend desc for this "
log_
info
(
LD_REND
,
"We have both a v0 and a v2 rend desc for this "
"service. The v2 desc doesn't contain the introduction "
"point (and key) to send an INTRODUCE1/2 cell to this "
"introduction point. Assuming the introduction point "
...
...
@@ -107,9 +112,9 @@ rend_client_send_introduction(origin_circuit_t *introcirc,
/* See flyspray task 1024. */
intro_key
=
entry
->
parsed
->
pk
;
}
else
{
log_
warn
(
LD_BUG
,
"Internal error: could not find intro key; we "
log_
info
(
LD_REND
,
"Internal error: could not find intro key; we "
"only have a v2 rend desc with %d intro points."
,
smartlist_len
(
entry
->
parsed
->
intro_nodes
)
);
num_intro_points
);
goto
err
;
}
}
...
...
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