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
5ee1de65
Commit
5ee1de65
authored
Oct 31, 2012
by
Nick Mathewson
⛰
Browse files
Only send begin cell flags when we have some to send
parent
a62c03fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/connection_edge.c
View file @
5ee1de65
...
...
@@ -1683,7 +1683,7 @@ connection_ap_handshake_send_begin(entry_connection_t *ap_conn)
ap_conn
->
socks_request
->
address
:
""
,
ap_conn
->
socks_request
->
port
);
payload_len
=
(
int
)
strlen
(
payload
)
+
1
;
if
(
payload_len
<=
RELAY_PAYLOAD_SIZE
-
4
)
{
if
(
payload_len
<=
RELAY_PAYLOAD_SIZE
-
4
&&
edge_conn
->
begincell_flags
)
{
set_uint32
(
payload
+
payload_len
,
htonl
(
edge_conn
->
begincell_flags
));
payload_len
+=
4
;
}
...
...
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