From a5d28bf88f839c21fbefde8391d777fd9610abd3 Mon Sep 17 00:00:00 2001 From: rl1987 Date: Thu, 21 May 2020 14:17:15 +0300 Subject: Check for NULL from tor_dup_ip() --- src/feature/relay/router.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/feature/relay/router.c') diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c index 267dee8483..34d8163c36 100644 --- a/src/feature/relay/router.c +++ b/src/feature/relay/router.c @@ -2784,6 +2784,9 @@ router_dump_router_to_string(routerinfo_t *router, } address = tor_dup_ip(router->addr); + if (!address) + goto err; + chunks = smartlist_new(); /* Generate the easy portion of the router descriptor. */ -- cgit v1.2.3-54-g00ecf