From dc96eca89141df559b97ae60d84ab7e046fc9ca7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 11 May 2006 09:07:08 +0000 Subject: [PATCH] ITS#4536 set chain_tail after sorting messages --- libraries/libldap/sort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.5