diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-01-06 15:40:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-01-06 15:40:34 +0000 |
commit | 447e6ffffd2fa6087f96123f24da7399d7629549 (patch) | |
tree | eb7927ae7aadba9cc1447cbd2fd34165a0c40414 /src | |
parent | e545f40e6a684400daabc90e68c456d6ca43e309 (diff) | |
download | tor-447e6ffffd2fa6087f96123f24da7399d7629549.tar.gz tor-447e6ffffd2fa6087f96123f24da7399d7629549.zip |
Fix bug where OPs would try to generate descriptor and crash.
svn:r5738
Diffstat (limited to 'src')
-rw-r--r-- | src/or/router.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index 1dc6aebc0b..d91564d93b 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -587,7 +587,12 @@ decide_if_publishable_server(time_t now) void consider_publishable_server(time_t now, int force) { - int rebuilt = router_rebuild_descriptor(0); + int rebuilt; + + if (!server_mode(get_options())) + return; + + rebuilt = router_rebuild_descriptor(0); if (decide_if_publishable_server(now)) { set_server_advertised(1); if (rebuilt == 0) |