aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-11 10:36:55 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-03 09:33:33 -0400
commit7f329206488cf844aee33fbd2e9724c72421b6af (patch)
treec9a421584535417162a2d9b5357e5083474f7ec9 /src/or/router.c
parent7b2364035a6f80fd3158e1b6d7b0034989aefb38 (diff)
downloadtor-7f329206488cf844aee33fbd2e9724c72421b6af.tar.gz
tor-7f329206488cf844aee33fbd2e9724c72421b6af.zip
Don't send missing X-Desc-Gen-Reason on startup
Since we start with desc_clean_since = 0, we should have been starting with non-null desc_dirty_reason. Fixes bug 22884; bugfix on 0.2.3.4-alpha when X-Desc-Gen-Reason was added.
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 100c4cc949..1944420a07 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1856,7 +1856,7 @@ static const char *desc_gen_reason = NULL;
* now. */
static time_t desc_clean_since = 0;
/** Why did we mark the descriptor dirty? */
-static const char *desc_dirty_reason = NULL;
+static const char *desc_dirty_reason = "Tor just started";
/** Boolean: do we need to regenerate the above? */
static int desc_needs_upload = 0;