瀏覽代碼

try to detect an assert error earlier

svn:r5834
Roger Dingledine 20 年之前
父節點
當前提交
76f1b7415b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/router.c

+ 1 - 0
src/or/router.c

@@ -63,6 +63,7 @@ dup_onion_keys(crypto_pk_env_t **key, crypto_pk_env_t **last)
   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);