aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-13 14:43:51 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-13 14:43:51 +0000
commita33452c40149842fda3ce2a201a722009e7e1456 (patch)
tree5bc3efc1704b0fb1dafface01fbda1e6a8da6e3b /src/or/routerlist.c
parentc32a4ce6b3ac5d24ff53639d2c00d9864e9bf22c (diff)
downloadtor-a33452c40149842fda3ce2a201a722009e7e1456.tar.gz
tor-a33452c40149842fda3ce2a201a722009e7e1456.zip
Fix up (I hope) most ot the things that coverity suddenly claimed were REVERSE_INULL. This is what we get for bragging about being down to 0 issues.
svn:r18096
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index b08d506dbe..3706769a46 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -619,10 +619,14 @@ router_rebuild_store(int flags, desc_store_t *store)
int had_any;
int force = flags & RRS_FORCE;
- if (!force && !router_should_rebuild_store(store))
- return 0;
- if (!routerlist)
- return 0;
+ if (!force && !router_should_rebuild_store(store)) {
+ r = 0;
+ goto done;
+ }
+ if (!routerlist) {
+ r = 0;
+ goto done;
+ }
if (store->type == EXTRAINFO_STORE)
had_any = !eimap_isempty(routerlist->extra_info_map);