diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-08-12 12:27:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-12 12:27:45 -0400 |
commit | 9deb3c61feb85563aeb336fec97fa3845a193f08 (patch) | |
tree | de917efc932ad335946d31c1912724f2cb7adb9f /src | |
parent | 23fb084cb2d7d20d906106b2eb7676f455f333e1 (diff) | |
download | tor-9deb3c61feb85563aeb336fec97fa3845a193f08.tar.gz tor-9deb3c61feb85563aeb336fec97fa3845a193f08.zip |
Fix a memory leak when adding an ri with expired ed certs
Fixes bug 16539; bugfix on 0.2.7.2-alpha.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index dc48862201..aebbd480d2 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -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; } |