Set the comparison function in v3_addr_canonize().

This commit is contained in:
Ben Laurie 2008-10-14 19:21:30 +00:00
parent 5dffc13f55
commit cdffc716c9
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,9 @@
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.
[Philip Paeps <philip@freebsd.org>]

View file

@ -878,6 +878,7 @@ int v3_addr_canonize(IPAddrBlocks *addr)
v3_addr_get_afi(f)))
return 0;
}
sk_IPAddressFamily_set_cmp_func(addr, IPAddressFamily_cmp);
sk_IPAddressFamily_sort(addr);
assert(v3_addr_is_canonical(addr));
return 1;