From 568e25a7a9b95fffb909f7ea4dbc80ab4a8ea4a3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 30 Nov 1999 13:32:06 +0000 Subject: [PATCH] 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.....! --- libraries/libldap/result.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5