提交 28b6d502 编写于 作者: B Ben Laurie

Set comparison function in v3_add_canonize().

上级 d5bbead4
...@@ -722,6 +722,9 @@ ...@@ -722,6 +722,9 @@
Changes between 0.9.8i and 0.9.8j [xx XXX xxxx] Changes between 0.9.8i and 0.9.8j [xx XXX xxxx]
*) Set the comparison function in v3_addr_canonize().
[Rob Austein <sra@hactrn.net>]
*) Add support for XMPP STARTTLS in s_client. *) Add support for XMPP STARTTLS in s_client.
[Philip Paeps <philip@freebsd.org>] [Philip Paeps <philip@freebsd.org>]
......
...@@ -877,6 +877,7 @@ int v3_addr_canonize(IPAddrBlocks *addr) ...@@ -877,6 +877,7 @@ int v3_addr_canonize(IPAddrBlocks *addr)
v3_addr_get_afi(f))) v3_addr_get_afi(f)))
return 0; return 0;
} }
sk_IPAddressFamily_set_cmp_func(addr, IPAddressFamily_cmp);
sk_IPAddressFamily_sort(addr); sk_IPAddressFamily_sort(addr);
assert(v3_addr_is_canonical(addr)); assert(v3_addr_is_canonical(addr));
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册