]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add smartlist_add() to get_lspecs_from_node)
authorNeel Chauhan <neel@neelc.org>
Thu, 16 Nov 2017 17:37:39 +0000 (12:37 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 Nov 2017 13:42:07 +0000 (08:42 -0500)
src/or/hs_circuit.c

index 26fe22eb7b0dc2137b998d70d6587512be07af52..9e7709504bd477b61a382b6e36bb595cae524344 100644 (file)
@@ -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);
   }
 }