mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Okay, now descriptors seem to be buildable.
svn:r9216
This commit is contained in:
parent
2741dd5741
commit
e3d5e4fcae
1 changed files with 2 additions and 1 deletions
|
@ -1204,6 +1204,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
|
|||
result = policy_write_item(s+written, maxlen-written, tmpe);
|
||||
if (result < 0)
|
||||
return -1;
|
||||
tor_assert(result == (int)strlen(s+written));
|
||||
written += result;
|
||||
if (written+2 > maxlen)
|
||||
return -1;
|
||||
|
@ -1214,7 +1215,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
|
|||
return -1;
|
||||
|
||||
/* Sign the directory */
|
||||
strlcat(s+written, "router-signature\n", maxlen-written);
|
||||
strlcpy(s+written, "router-signature\n", maxlen-written);
|
||||
written += strlen(s+written);
|
||||
s[written] = '\0';
|
||||
if (router_get_router_hash(s, digest) < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue