]> git.sur5r.net Git - openldap/commitdiff
From HEAD:
authorKurt Zeilenga <kurt@openldap.org>
Thu, 11 May 2006 20:33:31 +0000 (20:33 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 11 May 2006 20:33:31 +0000 (20:33 +0000)
+       Fixed libldap ldap_sort_entries tail bug (ITS#4536)
+       Fixed slapd-hdb IDL sort issue (ITS#4531)
+       Fixed OSF1 compilation problem (ITS#4537)

CHANGES
libraries/libldap/sort.c
servers/slapd/daemon.c

diff --git a/CHANGES b/CHANGES
index c6a35be935161d9adae1d6a5f83617184ed98cf8..6212b3127c7d94aa6f736f1708277ba7ad4bfe86 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,7 @@
 OpenLDAP 2.3 Change Log
 
 OpenLDAP 2.3.22 Engineering
+       Fixed libldap ldap_sort_entries tail bug (ITS#4536)
        Fixed libldap_r thread debug missing break
        Fixed libldap_r tpool cleanup
        Fixed liblutil strtoul(3) usage (ITS#4503)
@@ -17,6 +18,7 @@ OpenLDAP 2.3.22 Engineering
        Added slapd syncrepl mandatory searchbase check
        Fixed slapd-bdb pre/post-read freeing (ITS#4532)
        Fixed slapd-bdb pre/post-read unavailable issue (ITS#4538)
+       Fixed slapd-hdb IDL sort issue (ITS#4531)
        Fixed slapadd cn=config issue (ITS#4194)
        Fixed slapd-ldap proxyAuthz of bound identity/override (ITS#4497)
        Fixed slapd-ldap/meta protocol version propagation (ITS#4488)
@@ -33,6 +35,7 @@ OpenLDAP 2.3.22 Engineering
        Fixed slurpd potential overflow issue
        Build Environment
                Fixed test020-proxycache disabled debug issue (ITS#4491)
+               Fixed OSF1 compilation problem (ITS#4537)
 
 OpenLDAP 2.3.21 Release
        Fixed libldap referral chasing issue (ITS#4448)
index 9d8e5f8ba2a8a93bde3658101ebdc3ef9caea47c..b556fc955ec63be44df094e918084b2876280b9b 100644 (file)
@@ -158,7 +158,8 @@ ldap_sort_entries(
                LDAP_VFREE( et[i].et_vals );
        }
        *ep = ohead;
-               
+       (*chain)->lm_chain_tail = otail ? otail : etail;
+
        LDAP_FREE( (char *) et );
 
        return( 0 );
index f5df4a16b6534f87f1e9bc8f3922e4a5e799b167..6b98e105effffb54e23c0051d2ac0597c4ca9069 100644 (file)
@@ -807,7 +807,8 @@ static int slap_get_listener_addresses(
                        sap[i]->sa_family = AF_INET;
                        ((struct sockaddr_in *)sap[i])->sin_port = htons(port);
                        AC_MEMCPY( &((struct sockaddr_in *)sap[i])->sin_addr,
-                               he ? he->h_addr_list[i] : &in, sizeof(struct in_addr) );
+                               he ? (struct in_addr *)he->h_addr_list[i] : &in,
+                               sizeof(struct in_addr) );
                }
                sap[i] = NULL;
 #endif