Set comparison function in v3_add_canonize().
authorBen Laurie <ben@openssl.org>
Tue, 14 Oct 2008 19:27:07 +0000 (19:27 +0000)
committerBen Laurie <ben@openssl.org>
Tue, 14 Oct 2008 19:27:07 +0000 (19:27 +0000)
CHANGES
crypto/x509v3/v3_addr.c

diff --git a/CHANGES b/CHANGES
index 198c7a8..c9d12ea 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
  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>]
 
index 6537105..16eaa73 100644 (file)
@@ -877,6 +877,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;