mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix a memory leak when adding an ri with expired ed certs
Fixes bug 16539; bugfix on 0.2.7.2-alpha.
This commit is contained in:
parent
23fb084cb2
commit
9deb3c61fe
4
changes/bug16539
Normal file
4
changes/bug16539
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (Ed25519):
|
||||
- Fix a memory leak when reading router descriptors with
|
||||
expired Ed25519 certificate. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
|
||||
|
@ -3295,6 +3295,8 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
|
||||
|
||||
/* Make sure that it isn't expired. */
|
||||
if (router->cert_expiration_time < approx_time()) {
|
||||
routerinfo_free(router);
|
||||
*msg = "Some certs on this router are expired.";
|
||||
return ROUTER_CERTS_EXPIRED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user