summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-03 17:47:32 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-03 17:47:32 +0000
commit59504f483157420dc2562e8a750070965a2cdc42 (patch)
treef464514141ec2d69227f501bdd24e72ea02debcb /src/or/dirserv.c
parent70075933c65d606a1b4dd24bff88ae10becea87d (diff)
downloadtor-59504f483157420dc2562e8a750070965a2cdc42.tar.gz
tor-59504f483157420dc2562e8a750070965a2cdc42.zip
bugfix: if a server uploads a descriptor that's unapproved, actually
tell him so. svn:r3243
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 1a2ee6b3ce..7462e1ee7c 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -380,7 +380,7 @@ dirserv_add_descriptor(const char **desc)
/* This isn't really an error; return success. */
routerinfo_free(ri);
*desc = end;
- return 1;
+ return verified;
}
/* We don't have a newer one; we'll update this one. */
log_fn(LOG_INFO,"Dirserv updating desc for nickname '%s'",ri->nickname);
@@ -403,7 +403,7 @@ dirserv_add_descriptor(const char **desc)
*desc = end;
directory_set_dirty();
- return 1;
+ return verified;
}
/** Remove all descriptors whose nicknames or fingerprints we don't