CID 1465290: Passing null pointer "ipv4_addr" to "geoip_get_country_by_addr"
*** CID 1465290: Null pointer dereferences (FORWARD_NULL)
/src/feature/nodelist/nodelist.c: 1991 in node_set_country()
1985 /* XXXXipv6 */
1986 if (node->rs)
1987 ipv4_addr = &node->rs->ipv4_addr;
1988 else if (node->ri)
1989 ipv4_addr = &node->ri->ipv4_addr;
1990
>>> CID 1465290: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "ipv4_addr" to "geoip_get_country_by_addr", which dereferences it.
1991 node->country = geoip_get_country_by_addr(ipv4_addr);
1992 }
1993
1994 /** Set the country code of all routers in the routerlist. */
1995 void
1996 nodelist_refresh_countries(void)