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
Mike Perry
Tor
Commits
e873c7e8
Commit
e873c7e8
authored
Aug 10, 2020
by
Nick Mathewson
👁
Browse files
small code tweaks to try to work around debian stable complaints
parent
057f40f3
Changes
2
Show whitespace changes
Inline
Side-by-side
src/feature/rend/rendclient.c
View file @
e873c7e8
...
...
@@ -261,8 +261,8 @@ rend_client_send_introduction(origin_circuit_t *introcirc,
>
MAX_NICKNAME_LEN
))
{
goto
perm_err
;
}
str
n
cpy
(
tmp
,
rendcirc
->
build_state
->
chosen_exit
->
nickname
,
(
MAX_NICKNAME_LEN
+
1
));
/* nul pads */
str
l
cpy
(
tmp
,
rendcirc
->
build_state
->
chosen_exit
->
nickname
,
sizeof
(
tmp
));
memcpy
(
tmp
+
MAX_NICKNAME_LEN
+
1
,
rendcirc
->
rend_data
->
rend_cookie
,
REND_COOKIE_LEN
);
dh_offset
=
MAX_NICKNAME_LEN
+
1
+
REND_COOKIE_LEN
;
...
...
src/lib/net/address.c
View file @
e873c7e8
...
...
@@ -337,7 +337,7 @@ tor_addr_to_str(char *dest, const tor_addr_t *addr, size_t len, int decorate)
break
;
case
AF_INET6
:
/* Shortest addr [ :: ] + \0 */
if
(
len
<
(
3
+
(
decorate
?
2
:
0
)))
if
(
len
<
(
3
+
(
decorate
?
2
u
:
0
u
)))
return
NULL
;
if
(
decorate
)
...
...
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