Set 'routerlist' global to NULL before freeing it.
commita9379d6750d025d8bfe54a79c26e89eb45393f3a
authorNick Mathewson <nickm@torproject.org>
Fri, 19 Jul 2019 13:49:52 +0000 (19 09:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 19 Jul 2019 13:49:52 +0000 (19 09:49 -0400)
tree923e48e6df77154967501a8a21851da870b263f0
parent1dd95278970f9f32d83a31fe73e0258a30523539
Set 'routerlist' global to NULL before freeing it.

There is other code that uses this value, and some of it is
apparently reachable from inside router_dir_info_changed(), which
routerlist_free() apparently calls.  (ouch!)  This is a minimal fix
to try to resolve the issue without causing other problems.

Fixes bug 31003. I'm calling this a bugfix on 0.1.2.2-alpha, where
the call to router_dir_info_changed() was added to routerlist_free().
changes/bug31003 [new file with mode: 0644]
src/feature/nodelist/routerlist.c