浏览代码

Nick points out:
tor_assert(!conn->_base.purpose == DIR_PURPOSE_FETCH_EXTRAINFO)
!=
tor_assert(conn->_base.purpose != DIR_PURPOSE_FETCH_EXTRAINFO)
!!

Robert Hogan 16 年之前
父节点
当前提交
5799cdd9d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -704,7 +704,7 @@ connection_dir_bridge_routerdesc_failed(dir_connection_t *conn)
                                         + strlen("fp/"),
                                         + strlen("fp/"),
                                        which, NULL, 0);
                                        which, NULL, 0);
 
 
-  tor_assert(!conn->_base.purpose == DIR_PURPOSE_FETCH_EXTRAINFO);
+  tor_assert(conn->_base.purpose != DIR_PURPOSE_FETCH_EXTRAINFO);
   if (smartlist_len(which)) {
   if (smartlist_len(which)) {
     connection_dir_retry_bridges(which);
     connection_dir_retry_bridges(which);
     SMARTLIST_FOREACH(which, char *, cp, tor_free(cp));
     SMARTLIST_FOREACH(which, char *, cp, tor_free(cp));