[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] try to detect an assert error earlier



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	router.c 
Log Message:
try to detect an assert error earlier


Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -p -d -r1.240 -r1.241
--- router.c	12 Jan 2006 18:04:17 -0000	1.240
+++ router.c	17 Jan 2006 02:31:04 -0000	1.241
@@ -63,6 +63,7 @@ dup_onion_keys(crypto_pk_env_t **key, cr
   tor_assert(key);
   tor_assert(last);
   tor_mutex_acquire(key_lock);
+  tor_assert(onionkey);
   *key = crypto_pk_dup_key(onionkey);
   if (lastonionkey)
     *last = crypto_pk_dup_key(lastonionkey);