diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-23 01:23:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-23 01:23:53 -0400 |
commit | 2527acb2dc8b71515ac0c882e3af4fc034ab1b48 (patch) | |
tree | 48bdb4a6919a11fdb337969bb46353701895ad54 /src/or/router.c | |
parent | cb7fff193e2749f241e646b155de3ee33623606e (diff) | |
parent | b80a8bba199b9adfb9c893641ba770566fa548e1 (diff) | |
download | tor-2527acb2dc8b71515ac0c882e3af4fc034ab1b48.tar.gz tor-2527acb2dc8b71515ac0c882e3af4fc034ab1b48.zip |
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts:
src/common/Makefile.am
src/or/control.c
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/router.c b/src/or/router.c index 63ed4cf404..2b11a52026 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -492,8 +492,8 @@ init_keys(void) char fingerprint_line[MAX_NICKNAME_LEN+FINGERPRINT_LEN+3]; const char *mydesc; crypto_pk_env_t *prkey; - char digest[20]; - char v3_digest[20]; + char digest[DIGEST_LEN]; + char v3_digest[DIGEST_LEN]; char *cp; or_options_t *options = get_options(); dirinfo_type_t type; @@ -505,7 +505,8 @@ init_keys(void) if (!key_lock) key_lock = tor_mutex_new(); - /* There are a couple of paths that put us here before */ + /* There are a couple of paths that put us here before we've asked + * openssl to initialize itself. */ if (crypto_global_init(get_options()->HardwareAccel, get_options()->AccelName, get_options()->AccelDir)) { |