aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-08-11 17:33:58 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2009-08-11 17:33:58 +0200
commita98643c1b5a39764204fcf6835a8b2bee670581d (patch)
treeab7d6c0eba944f34c7fee0f105e4f6394acaa042 /src/or/router.c
parente50b7768b94bbcccef77be255920e3aac80a9555 (diff)
downloadtor-a98643c1b5a39764204fcf6835a8b2bee670581d.tar.gz
tor-a98643c1b5a39764204fcf6835a8b2bee670581d.zip
Fix possible segmentation fault on directory authorities.
The more verbose logs that were added in ee58153 also include a string that might not have been initialized. This can lead to segfaults, e.g., when setting up private Tor networks. Initialize this string with NULL.
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 859a1e805a..f0a1e40743 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -544,7 +544,7 @@ init_keys(void)
/* Must be called after keys are initialized. */
mydesc = router_get_my_descriptor();
if (authdir_mode(options)) {
- const char *m;
+ const char *m = NULL;
routerinfo_t *ri;
/* We need to add our own fingerprint so it gets recognized. */
if (dirserv_add_own_fingerprint(options->Nickname, get_identity_key())) {