diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-02 06:16:46 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-02 06:16:46 +0000 |
commit | b4dad0e6a4297e41e8bed7500f7ebe0797014b10 (patch) | |
tree | 075eb89f08639111661efed3253955f1d78b6156 | |
parent | 0d7e8660c7dd5a99ca4830d9538a1f5c5d0e6835 (diff) | |
download | tor-b4dad0e6a4297e41e8bed7500f7ebe0797014b10.tar.gz tor-b4dad0e6a4297e41e8bed7500f7ebe0797014b10.zip |
fix the assert bug reported by bassclef@163.com
svn:r3237
-rw-r--r-- | src/or/routerparse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index a8f9aac09b..78fb316ff9 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -546,8 +546,10 @@ router_parse_runningrouters(const char *str) goto done; err: - running_routers_free(new_list); - new_list = NULL; + if (new_list) { + running_routers_free(new_list); + new_list = NULL; + } done: if (declared_key) crypto_free_pk_env(declared_key); if (tokens) { |