[or-cvs] tor --list-fingerprint as a client shouldn"t try to print n...
Roger Dingledine
arma at seul.org
Sat Nov 6 09:22:11 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
tor --list-fingerprint as a client shouldn't try to print null
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.356
retrieving revision 1.357
diff -u -d -r1.356 -r1.357
--- main.c 6 Nov 2004 06:56:28 -0000 1.356
+++ main.c 6 Nov 2004 09:22:08 -0000 1.357
@@ -1117,6 +1117,7 @@
{
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 @@
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 **/
More information about the tor-commits
mailing list