Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
912ae2b8
Commit
912ae2b8
authored
Sep 07, 2018
by
Nick Mathewson
🎨
Browse files
Merge remote-tracking branch 'teor/bug27463-029' into maint-0.2.9
parents
1570f17f
9d5c6317
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug27463
0 → 100644
View file @
912ae2b8
o Minor bugfixes (onion services):
- Silence a spurious compiler warning in rend_client_send_introduction().
Fixes bug 27463; bugfix on 0.1.1.2-alpha.
src/or/rendclient.c
View file @
912ae2b8
...
...
@@ -269,6 +269,15 @@ rend_client_send_introduction(origin_circuit_t *introcirc,
dh_offset
=
v3_shift
+
7
+
DIGEST_LEN
+
2
+
klen
+
REND_COOKIE_LEN
;
}
else
{
/* Version 0. */
/* Some compilers are smart enough to work out that nickname can be more
* than 19 characters, when it's a hexdigest. They warn that strncpy()
* will truncate hexdigests without NUL-terminating them. But we only put
* hexdigests in HSDir and general circuit exits. */
if
(
BUG
(
strlen
(
rendcirc
->
build_state
->
chosen_exit
->
nickname
)
>
MAX_NICKNAME_LEN
))
{
goto
perm_err
;
}
strncpy
(
tmp
,
rendcirc
->
build_state
->
chosen_exit
->
nickname
,
(
MAX_NICKNAME_LEN
+
1
));
/* nul pads */
memcpy
(
tmp
+
MAX_NICKNAME_LEN
+
1
,
rendcirc
->
rend_data
->
rend_cookie
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment