diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-06 09:22:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-06 09:22:08 +0000 |
commit | efad93feb432ad555a50f2f17dbac61713ff0a95 (patch) | |
tree | ace1000c442c8a42c99813a125276c1c133ab6f8 /src | |
parent | 53a2b227423c1f40f246a3c226bfc2705d87ccc1 (diff) | |
download | tor-efad93feb432ad555a50f2f17dbac61713ff0a95.tar.gz tor-efad93feb432ad555a50f2f17dbac61713ff0a95.zip |
tor --list-fingerprint as a client shouldn't try to print null
svn:r2697
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 3 |
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 **/ |