]> git.sur5r.net Git - openldap/commitdiff
ITS#4536 set chain_tail after sorting messages
authorHoward Chu <hyc@openldap.org>
Thu, 11 May 2006 09:07:08 +0000 (09:07 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 11 May 2006 09:07:08 +0000 (09:07 +0000)
libraries/libldap/sort.c

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 );