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
5864f4ac
Commit
5864f4ac
authored
20 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
fix a seg fault when fetching rendezvous descs
svn:r2825
parent
a3788d5c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/directory.c
+4
-4
4 additions, 4 deletions
src/or/directory.c
with
4 additions
and
4 deletions
src/or/directory.c
+
4
−
4
View file @
5864f4ac
...
...
@@ -314,8 +314,8 @@ directory_initiate_command(const char *address, uint32_t addr,
}
}
/** Queue an appropriate HTTP command on conn-\>outbuf. The other args
as in
* directory_initiate_command.
/** Queue an appropriate HTTP command on conn-\>outbuf. The other args
*
are as in
directory_initiate_command.
*/
static
void
directory_send_command
(
connection_t
*
conn
,
const
char
*
platform
,
...
...
@@ -371,7 +371,7 @@ directory_send_command(connection_t *conn, const char *platform,
tor_assert
(
!
payload
);
/* this must be true or we wouldn't be doing the lookup */
tor_assert
(
strlen
(
payload
)
<=
REND_SERVICE_ID_LEN
);
tor_assert
(
strlen
(
resource
)
<=
REND_SERVICE_ID_LEN
);
/* This breaks the function abstraction. */
strlcpy
(
conn
->
rend_query
,
resource
,
sizeof
(
conn
->
rend_query
));
...
...
@@ -391,7 +391,7 @@ directory_send_command(connection_t *conn, const char *platform,
httpcommand
,
proxystring
,
url
,
(
unsigned
long
)
payload_len
,
payload
?
(
unsigned
long
)
payload_len
:
0
,
hoststring
);
connection_write_to_buf
(
tmp
,
strlen
(
tmp
),
conn
);
...
...
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