summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index d5823220d0..6d8f879948 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1117,6 +1117,7 @@ static void do_list_fingerprint(void)
{
char buf[FINGERPRINT_LEN+1];
crypto_pk_env_t *k;
+ const char *nickname = get_options()->Nickname;
if (init_keys() < 0) {
log_fn(LOG_ERR,"Error initializing keys; exiting");
return;
@@ -1129,7 +1130,7 @@ static void do_list_fingerprint(void)
log_fn(LOG_ERR, "Error computing fingerprint");
return;
}
- printf("%s %s\n", get_options()->Nickname, buf);
+ printf("%s %s\n", nickname?nickname:"client", buf);
}
/** DOCDOC **/