[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix a seg fault in "tor --hash-password foo"
Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-010x/tor/src/or
Modified Files:
Tag: tor-0_1_0-patches
main.c
Log Message:
fix a seg fault in "tor --hash-password foo"
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.505.2.3
retrieving revision 1.505.2.4
diff -u -d -r1.505.2.3 -r1.505.2.4
--- main.c 13 Jun 2005 00:48:39 -0000 1.505.2.3
+++ main.c 18 Jun 2005 19:46:48 -0000 1.505.2.4
@@ -1238,7 +1238,8 @@
/* XXX really, this should get moved to do_main_loop */
}
- handle_signals(1);
+ if (get_options()->command == CMD_RUN_TOR)
+ handle_signals(1);
crypto_global_init();
if (crypto_seed_rng()) {