Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
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
jarl
tor
Commits
badc81de
Commit
badc81de
authored
10 years ago
by
Sebastian Hahn
Browse files
Options
Downloads
Patches
Plain Diff
Don't init hs intro key as side effect of an assert
parent
447769dd
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
changes/bug15211
+2
-1
2 additions, 1 deletion
changes/bug15211
src/or/rendservice.c
+2
-1
2 additions, 1 deletion
src/or/rendservice.c
with
4 additions
and
2 deletions
changes/bug15211
+
2
−
1
View file @
badc81de
o Minor bugfixes:
- Remove side-effects from tor_assert() calls. This was harmless,
because we never disable assertions, but it is bad style and
unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36.
unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36, and
0.2.0.10.
This diff is collapsed.
Click to expand it.
src/or/rendservice.c
+
2
−
1
View file @
badc81de
...
...
@@ -3320,7 +3320,8 @@ rend_services_introduce(void)
intro
=
tor_malloc_zero
(
sizeof
(
rend_intro_point_t
));
intro
->
extend_info
=
extend_info_from_node
(
node
,
0
);
intro
->
intro_key
=
crypto_pk_new
();
tor_assert
(
!
crypto_pk_generate_key
(
intro
->
intro_key
));
int
fail
=
crypto_pk_generate_key
(
intro
->
intro_key
);
tor_assert
(
!
fail
);
intro
->
time_published
=
-
1
;
intro
->
time_to_expire
=
-
1
;
intro
->
time_expiring
=
-
1
;
...
...
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