From: Howard Chu Date: Tue, 30 Nov 1999 13:32:06 +0000 (+0000) Subject: ldap_result was losing messages when multiple msgids were queued, X-Git-Tag: UCDATA_2_4~156 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=568e25a7a9b95fffb909f7ea4dbc80ab4a8ea4a3;p=openldap ldap_result was losing messages when multiple msgids were queued, and results were being returned one-at-a-time. Ugh, this cost me two days, loss of hair, sleep, etc.....! --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 4ed68c7b8e..042e92a52e 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -144,8 +144,11 @@ ldap_result( lastlm->lm_next = (all == 0 && lm->lm_chain != NULL ? lm->lm_chain : lm->lm_next); } - if ( all == 0 ) + if ( all == 0 && lm->lm_chain != NULL ) + { + lm->lm_chain->lm_next = lm->lm_next; lm->lm_chain = NULL; + } lm->lm_next = NULL; *result = lm;