浏览代码

Add smartlist_add() to get_lspecs_from_node)

Neel Chauhan 6 年之前
父节点
当前提交
27d34f36e0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/hs_circuit.c

+ 1 - 0
src/or/hs_circuit.c

@@ -617,6 +617,7 @@ get_lspecs_from_node(const node_t *node, smartlist_t *lspecs)
     link_specifier_set_un_ipv6_port(ls, ap.port);
     /* Sixteen bytes IPv6 and two bytes port. */
     link_specifier_set_ls_len(ls, addr_len + sizeof(ap.port));
+    smartlist_add(lspecs, ls);
   }
 }