From: Howard Chu Date: Thu, 11 May 2006 09:07:08 +0000 (+0000) Subject: ITS#4536 set chain_tail after sorting messages X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc96eca89141df559b97ae60d84ab7e046fc9ca7;p=openldap ITS#4536 set chain_tail after sorting messages --- diff --git a/libraries/libldap/sort.c b/libraries/libldap/sort.c index 9d8e5f8ba2..b556fc955e 100644 --- a/libraries/libldap/sort.c +++ b/libraries/libldap/sort.c @@ -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 );