mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
When copying routerinfo, copy descriptor too to prevent later double-free.
svn:r3711
This commit is contained in:
parent
97bc49bd72
commit
c5091e7134
@ -694,6 +694,8 @@ routerinfo_t *routerinfo_copy(const routerinfo_t *router)
|
||||
r->address = tor_strdup(r->address);
|
||||
r->nickname = tor_strdup(r->nickname);
|
||||
r->platform = tor_strdup(r->platform);
|
||||
if (r->signed_descriptor)
|
||||
r->signed_descriptor = tor_strdup(r->signed_descriptor);
|
||||
if (r->onion_pkey)
|
||||
r->onion_pkey = crypto_pk_dup_key(r->onion_pkey);
|
||||
if (r->identity_pkey)
|
||||
|
Loading…
Reference in New Issue
Block a user